Qt 4.3: QGL Namespace Reference

|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# QGL Namespace Reference
[QtOpenGL module]

The QGL namespace specifies miscellaneous identifiers used in the Qt OpenGL module. More...

     #include <QGL>

### Types

- enum FormatOption { DoubleBuffer, DepthBuffer, Rgba, AlphaChannel, ..., NoSampleBuffers }
- flags FormatOptions

## Detailed Description

The QGL namespace specifies miscellaneous identifiers used in the Qt OpenGL module.

## Type Documentation

### enum QGL::FormatOption
flags QGL::FormatOptions

This enum specifies the format options.

Constant | Value
--- | ---
`QGL::DoubleBuffer` | `0x0001`
`QGL::DepthBuffer` | `0x0002`
`QGL::Rgba` | `0x0004`
`QGL::AlphaChannel` | `0x0008`
`QGL::AccumBuffer` | `0x0010`
`QGL::StencilBuffer` | `0x0020`
`QGL::StereoBuffers` | `0x0040`
`QGL::DirectRendering` | `0x0080`
`QGL::HasOverlay` | `0x0100`
`QGL::SampleBuffers` | `0x0200`
`QGL::SingleBuffer` | `DoubleBuffer<<16`
`QGL::NoDepthBuffer` | `DepthBuffer<<16`
`QGL::ColorIndex` | `Rgba<<16`
`QGL::NoAlphaChannel` | `AlphaChannel<<16`
`QGL::NoAccumBuffer` | `AccumBuffer<<16`
`QGL::NoStencilBuffer` | `StencilBuffer<<16`
`QGL::NoStereoBuffers` | `StereoBuffers<<16`
`QGL::IndirectRendering` | `DirectRendering<<16`
`QGL::NoOverlay` | `HasOverlay<<16`
`QGL::NoSampleBuffers` | `SampleBuffers<<16`

The FormatOptions type is a typedef for QFlags<FormatOption>. It stores an OR combination of FormatOption values.

See also Sample Buffers Example.