Qt 4.8
|
#include <qgl_p.h>
Public Functions | |
QGLTexture * | bindTexture (const QImage &image, GLenum target, GLint format, QGLContext::BindOptions options) |
QGLTexture * | bindTexture (const QImage &image, GLenum target, GLint format, const qint64 key, QGLContext::BindOptions options) |
QGLTexture * | bindTexture (const QPixmap &pixmap, GLenum target, GLint format, QGLContext::BindOptions options) |
QGLTexture * | bindTextureFromNativePixmap (QPixmap *, const qint64 key, QGLContext::BindOptions options) |
void | cleanup () |
void | clearDrawable () |
QImage | convertToGLFormat (const QImage &image, bool force_premul, GLenum texture_format) |
void | destroyEglSurfaceForDevice () |
EGLSurface | eglSurfaceForDevice () const |
void | init (QPaintDevice *dev, const QGLFormat &format) |
int | maxTextureSize () |
QGLContextPrivate (QGLContext *context) | |
void | setVertexAttribArrayEnabled (int arrayIndex, bool enabled=true) |
void | swapRegion (const QRegion ®ion) |
void | syncGlState () |
QGLTexture * | textureCacheLookup (const qint64 key, GLenum target) |
void * | tryFormat (const QGLFormat &format) |
void | updateFormatVersion () |
~QGLContextPrivate () | |
Static Public Functions | |
static QGLContextGroup * | contextGroup (const QGLContext *ctx) |
static void | destroyGlSurfaceForPixmap (QPixmapData *) |
static QGLExtensionFuncs & | extensionFuncs (const QGLContext *ctx) |
static Q_OPENGL_EXPORT QGLExtensionFuncs & | extensionFuncs (const QGLContext *) |
static void | setExtraWindowSurfaceCreationProps (QEglProperties *props) |
static void | unbindPixmapFromTexture (QPixmapData *) |
static void | setCurrentContext (QGLContext *context) |
Static Public Variables | |
static QEglProperties * | extraWindowSurfaceCreationProps = NULL |
static Q_OPENGL_EXPORT QGLExtensionFuncs | qt_extensionFuncs |
|
explicit |
Definition at line 1728 of file qgl.cpp.
QGLTexture * QGLContextPrivate::bindTexture | ( | const QImage & | image, |
GLenum | target, | ||
GLint | format, | ||
QGLContext::BindOptions | options | ||
) |
Definition at line 2394 of file qgl.cpp.
QGLTexture * QGLContextPrivate::bindTexture | ( | const QImage & | image, |
GLenum | target, | ||
GLint | format, | ||
const qint64 | key, | ||
QGLContext::BindOptions | options | ||
) |
Definition at line 2449 of file qgl.cpp.
QGLTexture * QGLContextPrivate::bindTexture | ( | const QPixmap & | pixmap, |
GLenum | target, | ||
GLint | format, | ||
QGLContext::BindOptions | options | ||
) |
Definition at line 2678 of file qgl.cpp.
QGLTexture * QGLContextPrivate::bindTextureFromNativePixmap | ( | QPixmap * | pixmap, |
const qint64 | key, | ||
QGLContext::BindOptions | options | ||
) |
defined(GLX_VERSION_1_3) || defined(Q_OS_HPUX)
Definition at line 1765 of file qgl_x11.cpp.
void QGLContextPrivate::cleanup | ( | ) |
Definition at line 2180 of file qgl.cpp.
void QGLContextPrivate::clearDrawable | ( | ) |
Definition at line 473 of file qgl_mac.mm.
|
inlinestatic |
Definition at line 464 of file qgl_p.h.
Referenced by QGLFramebufferObject::bind(), QGLFBOGLPaintDevice::context(), QGL2PaintEngineExPrivate::drawCachedGlyphs(), QGLTextureCache::getTexture(), and QGLFramebufferObject::release().
QImage QGLContextPrivate::convertToGLFormat | ( | const QImage & | image, |
bool | force_premul, | ||
GLenum | texture_format | ||
) |
Definition at line 2381 of file qgl.cpp.
void QGLContextPrivate::destroyEglSurfaceForDevice | ( | ) |
Definition at line 296 of file qgl_egl.cpp.
|
static |
Definition at line 1890 of file qgl_x11.cpp.
EGLSurface QGLContextPrivate::eglSurfaceForDevice | ( | ) | const |
Definition at line 320 of file qgl_egl.cpp.
|
inlinestatic |
Definition at line 467 of file qgl_p.h.
Referenced by qt_resolve_buffer_extensions(), and qt_resolve_glsl_extensions().
|
static |
void QGLContextPrivate::init | ( | QPaintDevice * | dev, |
const QGLFormat & | format | ||
) |
Definition at line 1747 of file qgl.cpp.
int QGLContextPrivate::maxTextureSize | ( | ) |
Definition at line 2775 of file qgl.cpp.
Referenced by QGLTextureGlyphCache::maxTextureHeight(), and QGLTextureGlyphCache::maxTextureWidth().
|
static |
Definition at line 3577 of file qgl.cpp.
Referenced by QGLContext::chooseMacVisual(), QGLContext::choosePixelFormat(), QGLContext::doneCurrent(), QGLContext::makeCurrent(), QGLContext::tryVisual(), and QGLContext::updatePaintDevice().
|
static |
Definition at line 352 of file qgl_egl.cpp.
Referenced by QMeeGoGraphicsSystem::setSurfaceFixedSize().
void QGLContextPrivate::setVertexAttribArrayEnabled | ( | int | arrayIndex, |
bool | enabled = true |
||
) |
Definition at line 2189 of file qgl.cpp.
Referenced by QGLEngineShaderManager::useBlitProgram(), QGLEngineShaderManager::useCorrectShaderProg(), and QGLEngineShaderManager::useSimpleProgram().
void QGLContextPrivate::swapRegion | ( | const QRegion & | region | ) |
Definition at line 344 of file qgl_egl.cpp.
void QGLContextPrivate::syncGlState | ( | ) |
Definition at line 2205 of file qgl.cpp.
QGLTexture * QGLContextPrivate::textureCacheLookup | ( | const qint64 | key, |
GLenum | target | ||
) |
Definition at line 2665 of file qgl.cpp.
void * QGLContextPrivate::tryFormat | ( | const QGLFormat & | format | ) |
Definition at line 351 of file qgl_mac.mm.
|
static |
Definition at line 1902 of file qgl_x11.cpp.
Referenced by QGLTextureDestroyer::freeTexture_slot().
void QGLContextPrivate::updateFormatVersion | ( | ) |
Definition at line 770 of file qgl_win.cpp.
QPaintEngine* QGLContextPrivate::active_engine |
Definition at line 458 of file qgl_p.h.
Referenced by QGLPixmapData::copy(), and QGL2PaintEngineEx::ensureActive().
QHash<QPixmapData*, QPixmap> QGLContextPrivate::boundPixmaps |
GLuint QGLContextPrivate::current_fbo |
Definition at line 456 of file qgl_p.h.
Referenced by QGLPaintDevice::beginPaint(), QGLFramebufferObject::bind(), QGLFramebufferObject::bindDefault(), QGLFramebufferObject::blitFramebuffer(), QGLPixmapData::copy(), QGLPixmapData::copyBackFromRenderFbo(), QGLPaintDevice::endPaint(), QGLPaintDevice::ensureActiveTarget(), QGLWindowSurface::flush(), QGLFramebufferObjectPrivate::init(), QGLFramebufferObject::isBound(), QGLFramebufferObject::release(), and QGLTextureGlyphCache::resizeTextureData().
GLuint QGLContextPrivate::default_fbo |
Definition at line 457 of file qgl_p.h.
Referenced by QGLPaintDevice::beginPaint(), QGLFramebufferObject::bindDefault(), QGLPaintDevice::endPaint(), QGLPaintDevice::ensureActiveTarget(), and QGLFramebufferObject::release().
QEglContext* QGLContextPrivate::eglContext |
QGLExtensions::Extensions QGLContextPrivate::extension_flags |
|
static |
GLuint QGLContextPrivate::fbo |
Definition at line 420 of file qgl_p.h.
Referenced by QGLPixmapData::copy(), and QGLPixmapData::copyBackFromRenderFbo().
QGLContextGroup* QGLContextPrivate::group |
Definition at line 453 of file qgl_p.h.
Referenced by contextGroup(), and extensionFuncs().
uint QGLContextPrivate::internal_context |
Definition at line 426 of file qgl_p.h.
Referenced by QOpenGLPaintEngine::begin(), QOpenGLPaintEngine::end(), and QGLWindowSurface::updateGeometry().
QHash<QGLContextResourceBase *, void *> QGLContextPrivate::m_resources |
Definition at line 459 of file qgl_p.h.
Referenced by QGLContextResourceBase::insert(), and QGLContextResourceBase::value().
QPaintDevice* QGLContextPrivate::paintDevice |
QGLContext* QGLContextPrivate::q_ptr |
|
static |
HGLRC QGLContextPrivate::rc |
Definition at line 375 of file qgl_p.h.
Referenced by qgl_create_context().
QGLFormat QGLContextPrivate::reqFormat |
Definition at line 419 of file qgl_p.h.
Referenced by qgl_create_context().
uint QGLContextPrivate::sharing |
Definition at line 423 of file qgl_p.h.
Referenced by qgl_create_context().
QGLTextureDestroyer* QGLContextPrivate::texture_destroyer |
Qt::HANDLE QGLContextPrivate::threadId |
uint QGLContextPrivate::valid |
Definition at line 422 of file qgl_p.h.
Referenced by qgl_create_context().
QGLFormat::OpenGLVersionFlags QGLContextPrivate::version_flags |
bool QGLContextPrivate::vertexAttributeArraysEnabledState[QT_GL_VERTEX_ARRAY_TRACKED_COUNT] |
uint QGLContextPrivate::workaround_brokenAlphaTexSubImage |
Definition at line 440 of file qgl_p.h.
Referenced by QGLTextureGlyphCache::fillTexture().
uint QGLContextPrivate::workaround_brokenAlphaTexSubImage_init |
Definition at line 441 of file qgl_p.h.
Referenced by QGLTextureGlyphCache::fillTexture().
uint QGLContextPrivate::workaround_brokenFBOReadBack |
Definition at line 432 of file qgl_p.h.
Referenced by QGLTextureGlyphCache::createTextureData(), QGLTextureGlyphCache::fillTexture(), QGLGlyphTexture::QGLGlyphTexture(), and QGLTextureGlyphCache::resizeTextureData().
uint QGLContextPrivate::workaround_brokenTexSubImage |
Definition at line 433 of file qgl_p.h.
Referenced by QGLTextureGlyphCache::maxTextureHeight().
uint QGLContextPrivate::workaround_brokenTextureFromPixmap_init |
uint QGLContextPrivate::workaround_needsFullClearOnEveryFrame |