NAME

Qt::OpenGL::QGLContext

PUBLIC METHODS

QGLContext(const QGLFormat & format)
QGLContext(const QGLFormat & format, QPaintDevice * device)
~QGLContext()
static bool areSharing(const QGLContext * context1, const QGLContext * context2)
GLuint bindTexture(const QString & fileName)
GLuint bindTexture(const QImage & image, GLenum target, GLint format)
GLuint bindTexture(const QImage & image, GLenum target, GLint format = GL_RGBA)
GLuint bindTexture(const QImage & image, GLenum target = GL_TEXTURE_2D, GLint format = GL_RGBA)
GLuint bindTexture(const QPixmap & pixmap, GLenum target, GLint format)
GLuint bindTexture(const QPixmap & pixmap, GLenum target, GLint format = GL_RGBA)
GLuint bindTexture(const QPixmap & pixmap, GLenum target = GL_TEXTURE_2D, GLint format = GL_RGBA)
GLuint bindTexture(const QImage & image, GLenum target, GLint format, QFlags<QGLContext::BindOption> options)
GLuint bindTexture(const QPixmap & pixmap, GLenum target, GLint format, QFlags<QGLContext::BindOption> options)
bool create(const QGLContext * shareContext)
bool create(const QGLContext * shareContext = 0)
static const QGLContext * currentContext()
void deleteTexture(GLuint tx_id)
QPaintDevice * device()
void doneCurrent()
void drawTexture(const QRectF & target, GLuint textureId, GLenum textureTarget)
void drawTexture(const QRectF & target, GLuint textureId, GLenum textureTarget = GL_TEXTURE_2D)
void drawTexture(const QPointF & point, GLuint textureId, GLenum textureTarget)
void drawTexture(const QPointF & point, GLuint textureId, GLenum textureTarget = GL_TEXTURE_2D)
QGLFormat format()
void * getProcAddress(const QString & proc)
bool isSharing()
bool isValid()
void makeCurrent()
QColor overlayTransparentColor()
QGLFormat requestedFormat()
void reset()
void setFormat(const QGLFormat & format)
static void setTextureCacheLimit(int size)
void swapBuffers()
static int textureCacheLimit()

ENUM VALUES

NoBindOption
InvertedYBindOption
MipmapBindOption
PremultipliedAlphaBindOption
LinearFilteringBindOption
MemoryManagedBindOption
CanFlipNativePixmapBindOption
DefaultBindOption
InternalBindOption

EXPORT

None by default.

AUTHOR

Dongxu Ma <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2011 - 2012 by Dongxu Ma

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/artistic.html