TQGL Class

Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |

# TQGL Class Reference
[OpenGL module]

The TQGL class is a namespace for miscellaneous identifiers in the TQt OpenGL module. More...

`#include <ntqgl.h>`

Inherited by TQGLFormat, TQGLContext, and TQGLWidget.

List of all member functions.

## Public Members

- enum FormatOption { DoubleBuffer = 0x0001, DepthBuffer = 0x0002, Rgba = 0x0004, AlphaChannel = 0x0008, AccumBuffer = 0x0010, StencilBuffer = 0x0020, StereoBuffers = 0x0040, DirectRendering = 0x0080, HasOverlay = 0x0100, SingleBuffer = DoubleBuffer<<16, NoDepthBuffer = DepthBuffer<<16, ColorIndex = Rgba<<16, NoAlphaChannel = AlphaChannel<<16, NoAccumBuffer = AccumBuffer<<16, NoStencilBuffer = StencilBuffer<<16, NoStereoBuffers = StereoBuffers<<16, IndirectRendering = DirectRendering<<16, NoOverlay = HasOverlay<<16 }

## Detailed Description

The TQGL class is a namespace for miscellaneous identifiers in the TQt OpenGL module.

Normally you can ignore this class. TQGLWidget and the other OpenGL* module classes inherit it, so when you make your own TQGLWidget subclass you can use the identifiers in the TQGL namespace without qualification.

However, you may occasionally find yourself in situations where you need to refer to these identifiers from outside the TQGL namespace's scope, e.g. in static functions. In such cases, simply write e.g. TQGL::DoubleBuffer instead of just DoubleBuffer.

* OpenGL is a trademark of Silicon Graphics, Inc. in the United States and other countries.

See also Graphics Classes and Image Processing Classes.

## Member Type Documentation

### TQGL::FormatOption

This enum specifies the format options.

- `TQGL::DoubleBuffer`
- `TQGL::DepthBuffer`
- `TQGL::Rgba`
- `TQGL::AlphaChannel`
- `TQGL::AccumBuffer`
- `TQGL::StencilBuffer`
- `TQGL::StereoBuffers`
- `TQGL::DirectRendering`
- `TQGL::HasOverlay`
- `TQGL::SingleBuffer`
- `TQGL::NoDepthBuffer`
- `TQGL::ColorIndex`
- `TQGL::NoAlphaChannel`
- `TQGL::NoAccumBuffer`
- `TQGL::NoStencilBuffer`
- `TQGL::NoStereoBuffers`
- `TQGL::IndirectRendering`
- `TQGL::NoOverlay`

This file is part of the TQt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.