Qt 4.8
Classes | Namespaces | Enumerations | Functions
qgl.h File Reference
#include <QtGui/qwidget.h>
#include <QtGui/qpaintengine.h>
#include <QtOpenGL/qglcolormap.h>
#include <QtCore/qmap.h>
#include <QtCore/qscopedpointer.h>
#include <QtCore/qt_windows.h>
#include <OpenGL/gl.h>

Go to the source code of this file.

Classes

class  QGLContext
 The QGLContext class encapsulates an OpenGL rendering context. More...
 
class  QGLFormat
 The QGLFormat class specifies the display format of an OpenGL rendering context. More...
 
class  QGLWidget
 The QGLWidget class is a widget for rendering OpenGL graphics. More...
 

Namespaces

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

Enumerations

enum  QGL::FormatOption {
  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::DeprecatedFunctions = 0x0400, 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, QGL::NoDeprecatedFunctions = DeprecatedFunctions << 16
}
 This enum specifies the format options that can be used to configure an OpenGL context. More...
 

Functions

Q_OPENGL_EXPORT bool operator!= (const QGLFormat &, const QGLFormat &)
 
Q_OPENGL_EXPORT QDebug operator<< (QDebug, const QGLFormat &)
 
Q_OPENGL_EXPORT bool operator== (const QGLFormat &, const QGLFormat &)
 
Q_OPENGL_EXPORT void QGL::setPreferredPaintEngine (QPaintEngine::Type engineType)
 Sets the preferred OpenGL paint engine that is used to draw onto QGLWidget, QGLPixelBuffer and QGLFramebufferObject targets with QPainter in Qt. More...
 

Function Documentation

◆ operator!=()

Q_OPENGL_EXPORT bool operator!= ( const QGLFormat ,
const QGLFormat  
)

◆ operator<<()

Q_OPENGL_EXPORT QDebug operator<< ( QDebug  ,
const QGLFormat  
)

Definition at line 1620 of file qgl.cpp.

1621 {
1622  const QGLFormatPrivate * const d = f.d;
1623 
1624  dbg.nospace() << "QGLFormat("
1625  << "options " << d->opts
1626  << ", plane " << d->pln
1627  << ", depthBufferSize " << d->depthSize
1628  << ", accumBufferSize " << d->accumSize
1629  << ", stencilBufferSize " << d->stencilSize
1630  << ", redBufferSize " << d->redSize
1631  << ", greenBufferSize " << d->greenSize
1632  << ", blueBufferSize " << d->blueSize
1633  << ", alphaBufferSize " << d->alphaSize
1634  << ", samples " << d->numSamples
1635  << ", swapInterval " << d->swapInterval
1636  << ", majorVersion " << d->majorVersion
1637  << ", minorVersion " << d->minorVersion
1638  << ", profile " << d->profile
1639  << ')';
1640 
1641  return dbg.space();
1642 }
double d
Definition: qnumeric_p.h:62
int numSamples
Definition: qgl_p.h:165
int minorVersion
Definition: qgl_p.h:168
int majorVersion
Definition: qgl_p.h:167
QGL::FormatOptions opts
Definition: qgl_p.h:156
QGLFormat::OpenGLContextProfile profile
Definition: qgl_p.h:169
int swapInterval
Definition: qgl_p.h:166
int stencilSize
Definition: qgl_p.h:160

◆ operator==()

Q_OPENGL_EXPORT bool operator== ( const QGLFormat ,
const QGLFormat  
)