Qt 4.8
|
#include <qgl.h>
#include <qlist.h>
#include <qmap.h>
#include <qpixmap.h>
#include <qevent.h>
#include <private/qgl_p.h>
#include <qcolormap.h>
#include <qvarlengtharray.h>
#include <qdebug.h>
#include <qcolor.h>
#include <qt_windows.h>
Go to the source code of this file.
Classes | |
class | QGLCmap |
class | QGLCmapPrivate |
class | QGLTemporaryContextPrivate |
Typedefs | |
typedef bool(APIENTRY * | PFNWGLCHOOSEPIXELFORMATARB) (HDC hdc, const int *piAttribList, const float *pfAttribFList, uint nMaxFormats, int *piFormats, UINT *nNumFormats) |
typedef bool(APIENTRY * | PFNWGLGETPIXELFORMATATTRIBIVARB) (HDC hdc, int iPixelFormat, int iLayerPlane, uint nAttributes, const int *piAttributes, int *piValues) |
Functions | |
static QGLFormat | pfdToQGLFormat (const PIXELFORMATDESCRIPTOR *pfd) |
QGLFormat | pfiToQGLFormat (HDC hdc, int pfi) |
static bool | qgl_create_context (HDC hdc, QGLContextPrivate *d, QGLContextPrivate *shareContext) |
static QRgb * | qgl_create_rgb_palette (const PIXELFORMATDESCRIPTOR *pfd) |
static uchar | qgl_rgb_palette_comp (int idx, uint nbits, uint shift) |
static bool | qLogEq (bool a, bool b) |
static void | qStoreColors (HPALETTE cmap, const QGLColormap &cols) |
Q_GUI_EXPORT const QString | qt_getRegisteredWndClass () |
void | qwglError (const char *method, const char *func) |
Variables | |
static bool | opengl32dll = false |
#define ERROR_INVALID_PROFILE_ARB 0x2096 |
Definition at line 137 of file qgl_win.cpp.
#define ERROR_INVALID_VERSION_ARB 0x2095 |
Definition at line 136 of file qgl_win.cpp.
#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001 |
Definition at line 146 of file qgl_win.cpp.
Referenced by QGLContextPrivate::updateFormatVersion().
#define GL_CONTEXT_FLAGS 0x821E |
Definition at line 145 of file qgl_win.cpp.
Referenced by QGLContextPrivate::updateFormatVersion().
#define GL_CONTEXT_PROFILE_MASK 0x9126 |
Definition at line 141 of file qgl_win.cpp.
Referenced by QGLContextPrivate::updateFormatVersion().
#define GL_MAJOR_VERSION 0x821B |
Definition at line 142 of file qgl_win.cpp.
#define GL_MINOR_VERSION 0x821C |
Definition at line 143 of file qgl_win.cpp.
#define GL_NUM_EXTENSIONS 0x821D |
Definition at line 144 of file qgl_win.cpp.
#define WGL_ACCELERATION_ARB 0x2003 |
Definition at line 77 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 |
Definition at line 111 of file qgl_win.cpp.
#define WGL_ACCUM_BITS_ARB 0x201D |
Definition at line 107 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_ACCUM_BLUE_BITS_ARB 0x2020 |
Definition at line 110 of file qgl_win.cpp.
#define WGL_ACCUM_GREEN_BITS_ARB 0x201F |
Definition at line 109 of file qgl_win.cpp.
#define WGL_ACCUM_RED_BITS_ARB 0x201E |
Definition at line 108 of file qgl_win.cpp.
#define WGL_ALPHA_BITS_ARB 0x201B |
Definition at line 105 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_ALPHA_SHIFT_ARB 0x201C |
Definition at line 106 of file qgl_win.cpp.
#define WGL_AUX_BUFFERS_ARB 0x2024 |
Definition at line 114 of file qgl_win.cpp.
#define WGL_BLUE_BITS_ARB 0x2019 |
Definition at line 103 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_BLUE_SHIFT_ARB 0x201A |
Definition at line 104 of file qgl_win.cpp.
#define WGL_COLOR_BITS_ARB 0x2014 |
Definition at line 98 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat().
#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x0002 |
Definition at line 134 of file qgl_win.cpp.
Referenced by qgl_create_context(), and QGLContextPrivate::updateFormatVersion().
#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x0001 |
Definition at line 133 of file qgl_win.cpp.
Referenced by qgl_create_context(), and QGLContextPrivate::updateFormatVersion().
#define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001 |
Definition at line 131 of file qgl_win.cpp.
#define WGL_CONTEXT_FLAGS_ARB 0x2094 |
Definition at line 129 of file qgl_win.cpp.
Referenced by qgl_create_context().
#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 |
Definition at line 132 of file qgl_win.cpp.
Referenced by qgl_create_context().
#define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093 |
Definition at line 128 of file qgl_win.cpp.
Referenced by qgl_create_context().
#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 |
Definition at line 126 of file qgl_win.cpp.
Referenced by qgl_create_context().
#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 |
Definition at line 127 of file qgl_win.cpp.
Referenced by qgl_create_context().
#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126 |
Definition at line 130 of file qgl_win.cpp.
Referenced by qgl_create_context().
#define WGL_DEPTH_BITS_ARB 0x2022 |
Definition at line 112 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_DOUBLE_BUFFER_ARB 0x2011 |
Definition at line 95 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_DRAW_TO_BITMAP_ARB 0x2002 |
Definition at line 76 of file qgl_win.cpp.
#define WGL_DRAW_TO_WINDOW_ARB 0x2001 |
Definition at line 75 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat().
#define WGL_FULL_ACCELERATION_ARB 0x2027 |
Definition at line 117 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_GENERIC_ACCELERATION_ARB 0x2026 |
Definition at line 116 of file qgl_win.cpp.
#define WGL_GREEN_BITS_ARB 0x2017 |
Definition at line 101 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_GREEN_SHIFT_ARB 0x2018 |
Definition at line 102 of file qgl_win.cpp.
#define WGL_NEED_PALETTE_ARB 0x2004 |
Definition at line 78 of file qgl_win.cpp.
#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 |
Definition at line 79 of file qgl_win.cpp.
#define WGL_NO_ACCELERATION_ARB 0x2025 |
Definition at line 115 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat().
#define WGL_NUMBER_OVERLAYS_ARB 0x2008 |
Definition at line 82 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 |
Definition at line 74 of file qgl_win.cpp.
#define WGL_NUMBER_UNDERLAYS_ARB 0x2009 |
Definition at line 83 of file qgl_win.cpp.
#define WGL_PIXEL_TYPE_ARB 0x2013 |
Definition at line 97 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_RED_BITS_ARB 0x2015 |
Definition at line 99 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_RED_SHIFT_ARB 0x2016 |
Definition at line 100 of file qgl_win.cpp.
#define WGL_SAMPLE_BUFFERS_ARB 0x2041 |
Definition at line 69 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_SAMPLES_ARB 0x2042 |
Definition at line 70 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_SHARE_ACCUM_ARB 0x200E |
Definition at line 92 of file qgl_win.cpp.
#define WGL_SHARE_DEPTH_ARB 0x200C |
Definition at line 90 of file qgl_win.cpp.
#define WGL_SHARE_STENCIL_ARB 0x200D |
Definition at line 91 of file qgl_win.cpp.
#define WGL_STENCIL_BITS_ARB 0x2023 |
Definition at line 113 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_STEREO_ARB 0x2012 |
Definition at line 96 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
#define WGL_SUPPORT_GDI_ARB 0x200F |
Definition at line 93 of file qgl_win.cpp.
#define WGL_SUPPORT_OPENGL_ARB 0x2010 |
Definition at line 94 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat().
#define WGL_SWAP_COPY_ARB 0x2029 |
Definition at line 119 of file qgl_win.cpp.
#define WGL_SWAP_EXCHANGE_ARB 0x2028 |
Definition at line 118 of file qgl_win.cpp.
#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 |
Definition at line 80 of file qgl_win.cpp.
#define WGL_SWAP_METHOD_ARB 0x2007 |
Definition at line 81 of file qgl_win.cpp.
#define WGL_SWAP_UNDEFINED_ARB 0x202A |
Definition at line 120 of file qgl_win.cpp.
#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A |
Definition at line 88 of file qgl_win.cpp.
#define WGL_TRANSPARENT_ARB 0x200A |
Definition at line 84 of file qgl_win.cpp.
#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 |
Definition at line 87 of file qgl_win.cpp.
#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 |
Definition at line 86 of file qgl_win.cpp.
#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B |
Definition at line 89 of file qgl_win.cpp.
#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 |
Definition at line 85 of file qgl_win.cpp.
#define WGL_TYPE_COLORINDEX_ARB 0x202C |
Definition at line 122 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat().
#define WGL_TYPE_RGBA_ARB 0x202B |
Definition at line 121 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and pfiToQGLFormat().
typedef bool(APIENTRY * PFNWGLCHOOSEPIXELFORMATARB) (HDC hdc, const int *piAttribList, const float *pfAttribFList, uint nMaxFormats, int *piFormats, UINT *nNumFormats) |
Definition at line 62 of file qgl_win.cpp.
typedef bool(APIENTRY * PFNWGLGETPIXELFORMATATTRIBIVARB) (HDC hdc, int iPixelFormat, int iLayerPlane, uint nAttributes, const int *piAttributes, int *piValues) |
Definition at line 56 of file qgl_win.cpp.
|
static |
Definition at line 542 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and QGLContextPrivate::updateFormatVersion().
QGLFormat pfiToQGLFormat | ( | HDC | hdc, |
int | pfi | ||
) |
Definition at line 572 of file qgl_win.cpp.
Referenced by qt_format_to_attrib_list(), and QGLContextPrivate::updateFormatVersion().
|
static |
Definition at line 709 of file qgl_win.cpp.
Referenced by QGLContextPrivate::updateFormatVersion().
|
static |
Definition at line 505 of file qgl_win.cpp.
Referenced by QGLContextPrivate::updateFormatVersion().
Definition at line 471 of file qgl_win.cpp.
Referenced by qgl_create_rgb_palette().
|
static |
|
static |
Definition at line 1425 of file qgl_win.cpp.
Referenced by QGLWidgetPrivate::updateColormap().
Q_GUI_EXPORT const QString qt_getRegisteredWndClass | ( | ) |
void qwglError | ( | const char * | method, |
const char * | func | ||
) |
Definition at line 404 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and QGLContextPrivate::updateFormatVersion().
|
static |
Definition at line 428 of file qgl_win.cpp.
Referenced by QGLContext::choosePixelFormat(), and QGLContextPrivate::updateFormatVersion().