Qt 4.8
|
#include "qapplication.h"
#include "qplatformdefs.h"
#include "qgl.h"
#include <qdebug.h>
#include "private/qt_x11_p.h"
#include "private/qpixmap_x11_p.h"
#include "qx11info_x11.h"
#include <qdatetime.h>
#include <stdlib.h>
#include "qpixmap.h"
#include "qimage.h"
#include "qgl_p.h"
#include "gl2paintengineex/qpaintengineex_opengl2_p.h"
#include <private/qwindowsurface_gl_p.h>
#include <private/qpaintengine_opengl_p.h>
#include <private/qglwindowsurface_qws_p.h>
#include <qglpixelbuffer.h>
#include <qglframebufferobject.h>
#include <private/qimage_p.h>
#include <private/qpixmapdata_p.h>
#include <private/qpixmapdata_gl_p.h>
#include <private/qglpixelbuffer_p.h>
#include <private/qimagepixmapcleanuphooks_p.h>
#include "qcolormap.h"
#include "qfile.h"
#include "qlibrary.h"
#include <qmutex.h>
Go to the source code of this file.
Classes | |
struct | DDSFormat |
struct | PvrHeader |
struct | QGLContextGroupList |
class | QGLDefaultExtensions |
class | QGLDefaultOverlayFormat |
class | QGLEngineSelector |
struct | QGLThreadContext |
Namespaces | |
QGL | |
The QGL namespace specifies miscellaneous identifiers used in the Qt OpenGL module. | |
Macros | |
#define | FOURCC_DXT1 0x31545844 |
#define | FOURCC_DXT2 0x32545844 |
#define | FOURCC_DXT3 0x33545844 |
#define | FOURCC_DXT4 0x34545844 |
#define | FOURCC_DXT5 0x35545844 |
#define | GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 |
#define | GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 |
#define | GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 |
#define | GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 |
#define | INT32 dummy_INT32 |
#define | INT8 dummy_INT8 |
#define | M(row, col) m[col*4+row] |
Typedefs | |
typedef void(* | _qt_image_cleanup_hook_64) (qint64) |
typedef void(* | _qt_pixmap_cleanup_hook_64) (qint64) |
Functions | |
static void | convertFromGLImage (QImage &img, int w, int h, bool alpha_format, bool include_alpha) |
static void | convertToGLFormatHelper (QImage &dst, const QImage &img, GLenum texture_format) |
QDebug | operator<< (QDebug dbg, const QGLFormat &f) |
static void | qDrawTextureRect (const QRectF &target, GLint textureWidth, GLint textureHeight, GLenum textureTarget) |
static void | qgl_byteSwapImage (QImage &img, GLenum pixel_type) |
static GLint | qgluProject (GLdouble objx, GLdouble objy, GLdouble objz, const GLdouble model[16], const GLdouble proj[16], const GLint viewport[4], GLdouble *winx, GLdouble *winy, GLdouble *winz) |
QGLFormat::OpenGLVersionFlags Q_AUTOTEST_EXPORT | qOpenGLVersionFlagsFromString (const QString &versionString) |
void | qt_add_rect_to_array (const QRectF &r, GLfloat *array) |
void | qt_add_texcoords_to_array (qreal x1, qreal y1, qreal x2, qreal y2, GLfloat *array) |
QRgb | qt_gl_convertToGLFormat (QRgb src_pixel, GLenum texture_format) |
static QRgb | qt_gl_convertToGLFormatHelper (QRgb src_pixel, GLenum texture_format) |
bool | qt_gl_preferGL2Engine () |
QImage | qt_gl_read_framebuffer (const QSize &size, bool alpha_format, bool include_alpha) |
QImage | qt_gl_read_texture (const QSize &size, bool alpha_format, bool include_alpha) |
const QGLContext * | qt_gl_transfer_context (const QGLContext *ctx) |
int | qt_next_power_of_two (int v) |
const QX11Info * | qt_x11Info (const QPaintDevice *pd) |
static void | transform_point (GLdouble out[4], const GLdouble m[16], const GLdouble in[4]) |
#define ctx q_ptr |
Definition at line 6094 of file qgl.cpp.
Referenced by QScriptContext::backtrace(), QJSDebuggerAgent::backtrace(), QOpenGLPaintEngine::begin(), QGLPaintDevice::beginPaint(), QGLWindowSurface::beginPaint(), QGLFramebufferObject::bind(), QGLFramebufferObject::bindDefault(), QGLFramebufferObject::blitFramebuffer(), QGLGlyphCache::cacheGlyphs(), QScript::ClassObjectDelegate::call(), QGLFramebufferObjectPrivate::checkFramebufferStatus(), QGLContext::chooseContext(), QGLGlyphCache::cleanupContext(), QGLOffscreen::cleanupGLContextRefs(), QGLProgramCache::cleanupPrograms(), QGLPixelBufferPrivate::common_init(), QScript::ClassObjectDelegate::construct(), QEglContext::context(), QScriptDebuggerBackend::context(), QGLTextureGlyphCache::context(), QGLOffscreen::context(), QGLTextureGlyphCache::contextDeleted(), QGLPixmapData::copy(), QGLPixmapData::copyBackFromRenderFbo(), QMeeGoGraphicsSystem::createFenceSync(), QGLPixmapData::createPixmapForImage(), QMeeGoGraphicsSystem::createWindowSurface(), QMeeGoPixmapData::destroyEGLSharedImage(), QMeeGoGraphicsSystem::destroyFenceSync(), QScriptDebuggerBackend::doPendingEvaluate(), QGL2PaintEngineExPrivate::drawCachedGlyphs(), QTextDocument::drawContents(), QTextControl::drawContents(), QGL2PaintEngineEx::drawImage(), QGLTrapezoidMaskGenerator::drawMask(), QGLEllipseMaskGenerator::drawMask(), QGL2PaintEngineEx::drawPixmap(), QGL2PaintEngineExPrivate::drawPixmapFragments(), drawTexture(), QGL2PaintEngineEx::drawTexture(), QBidiControl::embed(), QOpenGLPaintEngine::end(), QGL2PaintEngineEx::end(), QGLPaintDevice::endPaint(), QGL2PaintEngineEx::ensureActive(), QGLPaintDevice::ensureActiveTarget(), QGLPixmapData::ensureCreated(), QScriptDebuggerCommandExecutor::execute(), QScript::QMetaObjectWrapperObject::execute(), QWaylandGLWindowSurface::flush(), QX11GLWindowSurface::flush(), QGLWindowSurface::flush(), QGLGlyphCache::fontEngineDestroyed(), QGLTextureGlyphCache::freeResource(), QGLPixmapData::fromData(), QMeeGoPixmapData::fromEGLSharedImage(), QGLPixmapData::fromFile(), QPixmap::fromMacCGImageRef(), QGLGradientCache::getBuffer(), QTextControl::getPaintContext(), QX11GLWindowSurface::grabWidget(), QGLTextureGlyphCache::height(), QGLWindowSurface::hijackWindow(), QFontEngineMac::imageForGlyph(), QMeeGoPixmapData::imageToEGLSharedImage(), QScriptEngine::importExtension(), QGLFramebufferObjectPrivate::init(), QMeeGoExtensions::initialize(), QGLOffscreen::initialize(), QMeeGoLivePixmapData::initializeThroughEGLImage(), QTextControlPrivate::inputContext(), QJSDebuggerAgent::localsAtFrame(), QMeeGoLivePixmapData::lock(), QGLWindowSurface::paintDevice(), QGLPixmapData::paintEngine(), QStaticTextPrivate::paintText(), QBidiControl::pdf(), QJSDebuggerAgentPrivate::positionChange(), printPage(), QGLPixmapBlurFilter::processGL(), QGLPixmapDropShadowFilter::processGL(), QScript::FunctionWrapper::proxyCall(), QScript::FunctionWithArgWrapper::proxyCall(), QScript::FunctionWrapper::proxyConstruct(), QScript::FunctionWithArgWrapper::proxyConstruct(), QGLShareContextScope::QGLShareContextScope(), QOCIDriver::QOCIDriver(), QScriptDebuggerAgent::QScriptDebuggerAgent(), qStringFromUcs2Le(), qt_mac_convert_iconref(), QMeeGoLivePixmapData::release(), QGLFramebufferObject::release(), QGLPixmapData::resize(), QX11GLWindowSurface::scroll(), QTextControlPrivate::sendMouseEventToInputContext(), QRasterPaintEngine::setCGContext(), QEglContext::setContext(), QOpenKODEIntegration::setMainGLContext(), QGLTextureGlyphCache::texture(), QGLPixmapData::toImage(), QFontEngineMac::type(), QCoreTextFontEngine::type(), QGL2PaintEngineExPrivate::updateClipScissorTest(), QGLWindowSurface::updateGeometry(), QGLTextureGlyphCache::width(), QGLFramebufferObject::~QGLFramebufferObject(), QGLGlyphTexture::~QGLGlyphTexture(), QGLPixmapData::~QGLPixmapData(), and QGLWindowSurface::~QGLWindowSurface().
#define ctx QGLContext::currentContext() |
#define M | ( | row, | |
col | |||
) | m[col*4+row] |
Referenced by QGenericMatrix< N, M, T >::copyDataTo(), QGenericMatrix< N, M, T >::fill(), QGenericMatrix< N, M, T >::isIdentity(), QDialogButtonBoxPrivate::layoutButtons(), QGenericMatrix< N, M, T >::operator!=(), operator*(), QGenericMatrix< N, M, T >::operator*=(), operator+(), QGenericMatrix< N, M, T >::operator+=(), operator-(), QGenericMatrix< N, M, T >::operator-=(), operator/(), QGenericMatrix< N, M, T >::operator/=(), operator<<(), QGenericMatrix< N, M, T >::operator==(), operator>>(), QGenericMatrix< N, M, T >::QGenericMatrix(), qGenericMatrixFromMatrix4x4(), qGenericMatrixToMatrix4x4(), QMatrix4x4::QMatrix4x4(), QGenericMatrix< N, M, T >::setToIdentity(), QMatrix4x4::toGenericMatrix(), transform_point(), and QGenericMatrix< N, M, T >::transposed().
|
static |
Definition at line 1818 of file qgl.cpp.
|
static |
Definition at line 2286 of file qgl.cpp.
Definition at line 1620 of file qgl.cpp.
|
static |
Definition at line 3003 of file qgl.cpp.
Definition at line 2427 of file qgl.cpp.
|
inlinestatic |
Definition at line 402 of file qgl.cpp.
QGLFormat::OpenGLVersionFlags Q_AUTOTEST_EXPORT qOpenGLVersionFlagsFromString | ( | const QString & | versionString | ) |
Definition at line 1320 of file qgl.cpp.
void qt_add_rect_to_array | ( | const QRectF & | r, |
GLfloat * | array | ||
) |
Definition at line 2972 of file qgl.cpp.
Referenced by QOpenGLPaintEnginePrivate::composite(), QOpenGLPaintEnginePrivate::drawFastRect(), QGLTrapezoidMaskGenerator::drawMask(), QGLEllipseMaskGenerator::drawMask(), QOpenGLPaintEngine::drawStaticTextItem(), drawTexture(), QOpenGLPaintEngine::drawTextureRect(), QOpenGLPaintEngine::drawTiledPixmap(), and QGLTrapezoidMaskGenerator::QGLTrapezoidMaskGenerator().
Definition at line 2989 of file qgl.cpp.
Referenced by QOpenGLPaintEngine::drawStaticTextItem(), QOpenGLPaintEngine::drawTextureRect(), QOpenGLPaintEngine::drawTiledPixmap(), and QGLTrapezoidMaskGenerator::QGLTrapezoidMaskGenerator().
Definition at line 2281 of file qgl.cpp.
Referenced by QGLPixmapData::bind(), and QGLPixmapData::paintEngine().
|
static |
Definition at line 5061 of file qgl.cpp.
Q_OPENGL_EXPORT const QString qt_gl_library_name | ( | ) |
Definition at line 5827 of file qgl.cpp.
Referenced by QGLXContext::getProcAddress(), qgl_use_font(), qglx_getProcAddress(), and QGLXContext::QGLXContext().
bool qt_gl_preferGL2Engine | ( | ) |
Definition at line 218 of file qgl.cpp.
Referenced by QGLTextureCache::getTexture(), QX11GLPixmapData::paintEngine(), QGLPixelBuffer::paintEngine(), QGLFramebufferObject::paintEngine(), qt_gl_preferredTextureTarget(), QGLWindowSurface::updateGeometry(), and QGLPixmapData::useFramebufferObjects().
Definition at line 1860 of file qgl.cpp.
Referenced by QGLPixelBuffer::toImage(), and QGLFramebufferObject::toImage().
Definition at line 1871 of file qgl.cpp.
Referenced by QGLPixmapData::fillImage(), and QGLPixmapData::toImage().
const QGLContext* qt_gl_transfer_context | ( | const QGLContext * | ctx | ) |
Definition at line 1716 of file qgl.cpp.
int qt_next_power_of_two | ( | int | v | ) |
Definition at line 1886 of file qgl.cpp.
Referenced by areaDiff(), QOpenGLPaintEngine::begin(), QGLGlyphCache::cacheGlyphs(), QGLOffscreen::initialize(), maybeRoundToNextPowerOfTwo(), and QGLMaskTextureCache::quadtreeFindExistingLocation().
Q_OPENGL_EXPORT QPaintEngine* qt_qgl_paint_engine | ( | ) |
Definition at line 5530 of file qgl.cpp.
Referenced by QGLTextureCache::getTexture(), QBBGLPaintDevice::paintEngine(), QEglFSPaintDevice::paintEngine(), QGLWindowSurfaceGLPaintDevice::paintEngine(), and EAGLPaintDevice::paintEngine().
Q_OPENGL_EXPORT void qt_set_gl_library_name | ( | const QString & | name | ) |
|
related |
|
inlinestatic |
|
static |
Q_GUI_EXPORT _qt_image_cleanup_hook_64 qt_image_cleanup_hook_64 |
Definition at line 56 of file qimagepixmapcleanuphooks.cpp.
Referenced by QImagePixmapCleanupHooks::executeImageHooks().
Q_GUI_EXPORT _qt_pixmap_cleanup_hook_64 qt_pixmap_cleanup_hook_64 |
Definition at line 54 of file qimagepixmapcleanuphooks.cpp.
Referenced by QImagePixmapCleanupHooks::executePixmapDataDestructionHooks(), and QImagePixmapCleanupHooks::executePixmapDataModificationHooks().