#include <qgl.h>
Public Types |
|
| enum | BindOption
{ NoBindOption = 0x0000, InvertedYBindOption = 0x0001, MipmapBindOption = 0x0002, PremultipliedAlphaBindOption = 0x0004, LinearFilteringBindOption = 0x0008, MemoryManagedBindOption = 0x0010, CanFlipNativePixmapBindOption = 0x0020, DefaultBindOption, InternalBindOption } |
Public Member Functions |
|
| QGLContext (const QGLFormat &format, QPaintDevice *device) | |
| QGLContext (const QGLFormat &format) | |
| virtual | ~QGLContext () |
| virtual bool | create (const QGLContext *shareContext=0) |
| bool | isValid () const |
| bool | isSharing () const |
| void | reset () |
| QGLFormat | format () const |
| QGLFormat | requestedFormat () const |
| void | setFormat (const QGLFormat &format) |
| virtual void | makeCurrent () |
| virtual void | doneCurrent () |
| virtual void | swapBuffers () const |
| GLuint | bindTexture (const QImage &image, GLenum target, GLint format, BindOptions options) |
| GLuint | bindTexture (const QPixmap &pixmap, GLenum target, GLint format, BindOptions options) |
| GLuint | bindTexture (const QImage &image, GLenum target=GL_TEXTURE_2D, GLint format=GL_RGBA) |
| GLuint | bindTexture (const QPixmap &pixmap, GLenum target=GL_TEXTURE_2D, GLint format=GL_RGBA) |
| GLuint | bindTexture (const QString &fileName) |
| void | deleteTexture (GLuint tx_id) |
| void | drawTexture (const QRectF &target, GLuint textureId, GLenum textureTarget=GL_TEXTURE_2D) |
| void | drawTexture (const QPointF &point, GLuint textureId, GLenum textureTarget=GL_TEXTURE_2D) |
| void * | getProcAddress (const QString &proc) const |
| QPaintDevice * | device () const |
| QColor | overlayTransparentColor () const |
Static Public Member Functions |
|
| static bool | areSharing (const QGLContext *context1, const QGLContext *context2) |
| static void | setTextureCacheLimit (int size) |
| static int | textureCacheLimit () |
| static const QGLContext * | currentContext () |
Protected Member Functions |
|
| virtual bool | chooseContext (const QGLContext *shareContext=0) |
| bool | deviceIsPixmap () const |
| bool | windowCreated () const |
| void | setWindowCreated (bool on) |
| bool | initialized () const |
| void | setInitialized (bool on) |
| void | generateFontDisplayLists (const QFont &fnt, int listBase) |
| uint | colorIndex (const QColor &c) const |
| void | setValid (bool valid) |
| void | setDevice (QPaintDevice *pDev) |
Static Protected Attributes |
|
| static QGLContext * | currentCtx |
Friends |
|
| class | QGLPixelBuffer |
| class | QGLPixelBufferPrivate |
| class | QGLWidget |
| class | QGLWidgetPrivate |
| class | QGLGlyphCache |
| class | QOpenGLPaintEngine |
| class | QOpenGLPaintEnginePrivate |
| class | QGL2PaintEngineEx |
| class | QGL2PaintEngineExPrivate |
| class | QGLEngineShaderManager |
| class | QGLWindowSurface |
| class | QGLPixmapData |
| class | QGLPixmapFilterBase |
| class | QGLTextureGlyphCache |
| class | QGLContextGroup |
| class | QGLSharedResourceGuard |
| class | QGLPixmapBlurFilter |
| class | QGLExtensions |
| class | QGLFramebufferObject |
| class | QGLFramebufferObjectPrivate |
| class | QGLFBOGLPaintDevice |
| class | QGLPaintDevice |
| class | QGLWidgetGLPaintDevice |
| class | QX11GLPixmapData |
| class | QX11GLSharedContexts |
| QGLFormat::OpenGLVersionFlags | QGLFormat::openGLVersionFlags () |
| enum BindOption |
| NoBindOption | |
| InvertedYBindOption | |
| MipmapBindOption | |
| PremultipliedAlphaBindOption | |
| LinearFilteringBindOption | |
| MemoryManagedBindOption | |
| CanFlipNativePixmapBindOption | |
| DefaultBindOption | |
| InternalBindOption |
Definition at line 323 of file qgl.h.
{
NoBindOption = 0x0000,
InvertedYBindOption = 0x0001,
MipmapBindOption = 0x0002,
PremultipliedAlphaBindOption = 0x0004,
LinearFilteringBindOption = 0x0008,
MemoryManagedBindOption = 0x0010, // internal flag
CanFlipNativePixmapBindOption = 0x0020, // internal flag
DefaultBindOption = LinearFilteringBindOption
| InvertedYBindOption
| MipmapBindOption,
InternalBindOption = MemoryManagedBindOption
| PremultipliedAlphaBindOption
};
| QGLContext | ( | const QGLFormat & | format, |
| QPaintDevice * | device | ||
| ) |
| QGLContext | ( | const QGLFormat & | format | ) |
| virtual ~QGLContext | ( | ) | [virtual] |
| virtual bool create | ( | const QGLContext * | shareContext = 0 |
) | [virtual] |
| bool isValid | ( | ) | const |
| bool isSharing | ( | ) | const |
| void reset | ( | ) |
| static bool areSharing | ( | const QGLContext * | context1, |
| const QGLContext * | context2 | ||
| ) | [static] |
| QGLFormat format | ( | ) | const |
| QGLFormat requestedFormat | ( | ) | const |
| void setFormat | ( | const QGLFormat & | format | ) |
| virtual void makeCurrent | ( | ) | [virtual] |
| virtual void doneCurrent | ( | ) | [virtual] |
| virtual void swapBuffers | ( | ) | const [virtual] |
| GLuint bindTexture | ( | const QImage & | image, |
| GLenum | target, | ||
| GLint | format, | ||
| BindOptions | options | ||
| ) |
| GLuint bindTexture | ( | const QPixmap & | pixmap, |
| GLenum | target, | ||
| GLint | format, | ||
| BindOptions | options | ||
| ) |
| GLuint bindTexture | ( | const QImage & | image, |
| GLenum | target =
GL_TEXTURE_2D, |
||
| GLint | format =
GL_RGBA |
||
| ) |
| GLuint bindTexture | ( | const QPixmap & | pixmap, |
| GLenum | target =
GL_TEXTURE_2D, |
||
| GLint | format =
GL_RGBA |
||
| ) |
| GLuint bindTexture | ( | const QString & | fileName | ) |
| void deleteTexture | ( | GLuint | tx_id | ) |
| void drawTexture | ( | const QRectF & | target, |
| GLuint | textureId, | ||
| GLenum | textureTarget =
GL_TEXTURE_2D |
||
| ) |
| void drawTexture | ( | const QPointF & | point, |
| GLuint | textureId, | ||
| GLenum | textureTarget =
GL_TEXTURE_2D |
||
| ) |
| static void setTextureCacheLimit | ( | int | size | ) | [static] |
| static int textureCacheLimit | ( | ) | [static] |
| void* getProcAddress | ( | const QString & | proc | ) | const |
| QPaintDevice* device | ( | ) | const |
| QColor overlayTransparentColor | ( | ) | const |
| static const QGLContext* currentContext | ( | ) | [static] |
| virtual bool chooseContext | ( | const QGLContext * | shareContext = 0 |
) | [protected, virtual] |
| bool deviceIsPixmap | ( | ) | const [protected] |
| bool windowCreated | ( | ) | const [protected] |
| void setWindowCreated | ( | bool | on | ) | [protected] |
| bool initialized | ( | ) | const [protected] |
| void setInitialized | ( | bool | on | ) | [protected] |
| void generateFontDisplayLists | ( | const QFont & | fnt, |
| int | listBase | ||
| ) | [protected] |
| uint colorIndex | ( | const QColor & | c | ) | const [protected] |
| void setValid | ( | bool | valid | ) | [protected] |
| void setDevice | ( | QPaintDevice * | pDev | ) | [protected] |
friend class QGLPixelBuffer
[friend] |
friend class QGLPixelBufferPrivate
[friend] |
friend class QGLWidget [friend] |
friend class QGLWidgetPrivate
[friend] |
friend class QGLGlyphCache
[friend] |
friend class QOpenGLPaintEngine
[friend] |
friend class QOpenGLPaintEnginePrivate
[friend] |
friend class QGL2PaintEngineEx
[friend] |
friend class QGL2PaintEngineExPrivate
[friend] |
friend class QGLEngineShaderManager
[friend] |
friend class QGLWindowSurface
[friend] |
friend class QGLPixmapData
[friend] |
friend class QGLPixmapFilterBase
[friend] |
friend class QGLTextureGlyphCache
[friend] |
friend class QGLContextGroup
[friend] |
friend class QGLSharedResourceGuard
[friend] |
friend class QGLPixmapBlurFilter
[friend] |
friend class QGLExtensions
[friend] |
friend class QGLFramebufferObject
[friend] |
friend class QGLFramebufferObjectPrivate
[friend] |
friend class QGLFBOGLPaintDevice
[friend] |
friend class QGLPaintDevice
[friend] |
friend class QGLWidgetGLPaintDevice
[friend] |
friend class QX11GLPixmapData
[friend] |
friend class QX11GLSharedContexts
[friend] |
| QGLFormat::OpenGLVersionFlags QGLFormat::openGLVersionFlags | ( | ) | [friend] |
QGLContext* currentCtx
[static, protected] |