Qt 4.8
|
#include <qglpixelbuffer.h>
#include <qgl.h>
#include <private/qgl_p.h>
#include <private/qglpixelbuffer_p.h>
#include <qimage.h>
#include <qdebug.h>
Go to the source code of this file.
Typedefs | |
typedef BOOL(WINAPI * | PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer) |
typedef BOOL(WINAPI * | PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats) |
typedef HPBUFFERARB(WINAPI * | PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList) |
typedef BOOL(WINAPI * | PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer) |
typedef const char *(WINAPI * | PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc) |
typedef HDC(WINAPI * | PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer) |
typedef BOOL(WINAPI * | PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues) |
typedef BOOL(WINAPI * | PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues) |
typedef BOOL(WINAPI * | PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue) |
typedef int(WINAPI * | PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC) |
typedef BOOL(WINAPI * | PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer) |
typedef BOOL(WINAPI * | PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList) |
Functions | |
QGLFormat | pfiToQGLFormat (HDC hdc, int pfi) |
static void | qt_format_to_attrib_list (bool has_render_texture, const QGLFormat &f, int attribs[]) |
#define GL_SAMPLES_ARB 0x80A9 |
Definition at line 176 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_ACCELERATION_ARB 0x2003 |
Definition at line 82 of file qglpixelbuffer_win.cpp.
#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 |
Definition at line 116 of file qglpixelbuffer_win.cpp.
#define WGL_ACCUM_BITS_ARB 0x201D |
Definition at line 112 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_ACCUM_BLUE_BITS_ARB 0x2020 |
Definition at line 115 of file qglpixelbuffer_win.cpp.
#define WGL_ACCUM_GREEN_BITS_ARB 0x201F |
Definition at line 114 of file qglpixelbuffer_win.cpp.
#define WGL_ACCUM_RED_BITS_ARB 0x201E |
Definition at line 113 of file qglpixelbuffer_win.cpp.
#define WGL_ALPHA_BITS_ARB 0x201B |
Definition at line 110 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_ALPHA_SHIFT_ARB 0x201C |
Definition at line 111 of file qglpixelbuffer_win.cpp.
#define WGL_AUX0_ARB 0x2087 |
Definition at line 154 of file qglpixelbuffer_win.cpp.
#define WGL_AUX1_ARB 0x2088 |
Definition at line 155 of file qglpixelbuffer_win.cpp.
#define WGL_AUX2_ARB 0x2089 |
Definition at line 156 of file qglpixelbuffer_win.cpp.
#define WGL_AUX3_ARB 0x208A |
Definition at line 157 of file qglpixelbuffer_win.cpp.
#define WGL_AUX4_ARB 0x208B |
Definition at line 158 of file qglpixelbuffer_win.cpp.
#define WGL_AUX5_ARB 0x208C |
Definition at line 159 of file qglpixelbuffer_win.cpp.
#define WGL_AUX6_ARB 0x208D |
Definition at line 160 of file qglpixelbuffer_win.cpp.
#define WGL_AUX7_ARB 0x208E |
Definition at line 161 of file qglpixelbuffer_win.cpp.
#define WGL_AUX8_ARB 0x208F |
Definition at line 162 of file qglpixelbuffer_win.cpp.
#define WGL_AUX9_ARB 0x2090 |
Definition at line 163 of file qglpixelbuffer_win.cpp.
#define WGL_AUX_BUFFERS_ARB 0x2024 |
Definition at line 119 of file qglpixelbuffer_win.cpp.
#define WGL_BACK_LEFT_ARB 0x2085 |
Definition at line 152 of file qglpixelbuffer_win.cpp.
#define WGL_BACK_RIGHT_ARB 0x2086 |
Definition at line 153 of file qglpixelbuffer_win.cpp.
#define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070 |
Definition at line 131 of file qglpixelbuffer_win.cpp.
#define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071 |
Definition at line 132 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_BLUE_BITS_ARB 0x2019 |
Definition at line 108 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_BLUE_SHIFT_ARB 0x201A |
Definition at line 109 of file qglpixelbuffer_win.cpp.
#define WGL_COLOR_BITS_ARB 0x2014 |
Definition at line 103 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_CUBE_MAP_FACE_ARB 0x207C |
Definition at line 143 of file qglpixelbuffer_win.cpp.
#define WGL_DEPTH_BITS_ARB 0x2022 |
Definition at line 117 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_DOUBLE_BUFFER_ARB 0x2011 |
Definition at line 100 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_DRAW_TO_BITMAP_ARB 0x2002 |
Definition at line 81 of file qglpixelbuffer_win.cpp.
#define WGL_DRAW_TO_PBUFFER_ARB 0x202D |
Definition at line 68 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_DRAW_TO_WINDOW_ARB 0x2001 |
Definition at line 80 of file qglpixelbuffer_win.cpp.
#define WGL_FLOAT_COMPONENTS_NV 0x20B0 |
Definition at line 167 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_FRONT_LEFT_ARB 0x2083 |
Definition at line 150 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_FRONT_RIGHT_ARB 0x2084 |
Definition at line 151 of file qglpixelbuffer_win.cpp.
#define WGL_FULL_ACCELERATION_ARB 0x2027 |
Definition at line 122 of file qglpixelbuffer_win.cpp.
#define WGL_GENERIC_ACCELERATION_ARB 0x2026 |
Definition at line 121 of file qglpixelbuffer_win.cpp.
#define WGL_GREEN_BITS_ARB 0x2017 |
Definition at line 106 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_GREEN_SHIFT_ARB 0x2018 |
Definition at line 107 of file qglpixelbuffer_win.cpp.
#define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030 |
Definition at line 71 of file qglpixelbuffer_win.cpp.
#define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E |
Definition at line 69 of file qglpixelbuffer_win.cpp.
#define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F |
Definition at line 70 of file qglpixelbuffer_win.cpp.
#define WGL_MIPMAP_LEVEL_ARB 0x207B |
Definition at line 142 of file qglpixelbuffer_win.cpp.
#define WGL_MIPMAP_TEXTURE_ARB 0x2074 |
Definition at line 135 of file qglpixelbuffer_win.cpp.
#define WGL_NEED_PALETTE_ARB 0x2004 |
Definition at line 83 of file qglpixelbuffer_win.cpp.
#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 |
Definition at line 84 of file qglpixelbuffer_win.cpp.
#define WGL_NO_ACCELERATION_ARB 0x2025 |
Definition at line 120 of file qglpixelbuffer_win.cpp.
#define WGL_NO_TEXTURE_ARB 0x2077 |
Definition at line 138 of file qglpixelbuffer_win.cpp.
#define WGL_NUMBER_OVERLAYS_ARB 0x2008 |
Definition at line 87 of file qglpixelbuffer_win.cpp.
#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 |
Definition at line 79 of file qglpixelbuffer_win.cpp.
#define WGL_NUMBER_UNDERLAYS_ARB 0x2009 |
Definition at line 88 of file qglpixelbuffer_win.cpp.
#define WGL_PBUFFER_HEIGHT_ARB 0x2035 |
Definition at line 74 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_PBUFFER_LARGEST_ARB 0x2033 |
Definition at line 72 of file qglpixelbuffer_win.cpp.
#define WGL_PBUFFER_LOST_ARB 0x2036 |
Definition at line 75 of file qglpixelbuffer_win.cpp.
#define WGL_PBUFFER_WIDTH_ARB 0x2034 |
Definition at line 73 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_PIXEL_TYPE_ARB 0x2013 |
Definition at line 102 of file qglpixelbuffer_win.cpp.
#define WGL_RED_BITS_ARB 0x2015 |
Definition at line 104 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_RED_SHIFT_ARB 0x2016 |
Definition at line 105 of file qglpixelbuffer_win.cpp.
#define WGL_SAMPLE_BUFFERS_ARB 0x2041 |
Definition at line 171 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_SAMPLES_ARB 0x2042 |
Definition at line 172 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_SHARE_ACCUM_ARB 0x200E |
Definition at line 97 of file qglpixelbuffer_win.cpp.
#define WGL_SHARE_DEPTH_ARB 0x200C |
Definition at line 95 of file qglpixelbuffer_win.cpp.
#define WGL_SHARE_STENCIL_ARB 0x200D |
Definition at line 96 of file qglpixelbuffer_win.cpp.
#define WGL_STENCIL_BITS_ARB 0x2023 |
Definition at line 118 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_STEREO_ARB 0x2012 |
Definition at line 101 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_SUPPORT_GDI_ARB 0x200F |
Definition at line 98 of file qglpixelbuffer_win.cpp.
#define WGL_SUPPORT_OPENGL_ARB 0x2010 |
Definition at line 99 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_SWAP_COPY_ARB 0x2029 |
Definition at line 124 of file qglpixelbuffer_win.cpp.
#define WGL_SWAP_EXCHANGE_ARB 0x2028 |
Definition at line 123 of file qglpixelbuffer_win.cpp.
#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 |
Definition at line 85 of file qglpixelbuffer_win.cpp.
#define WGL_SWAP_METHOD_ARB 0x2007 |
Definition at line 86 of file qglpixelbuffer_win.cpp.
#define WGL_SWAP_UNDEFINED_ARB 0x202A |
Definition at line 125 of file qglpixelbuffer_win.cpp.
#define WGL_TEXTURE_1D_ARB 0x2079 |
Definition at line 140 of file qglpixelbuffer_win.cpp.
#define WGL_TEXTURE_2D_ARB 0x207A |
Definition at line 141 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_TEXTURE_CUBE_MAP_ARB 0x2078 |
Definition at line 139 of file qglpixelbuffer_win.cpp.
#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E |
Definition at line 145 of file qglpixelbuffer_win.cpp.
#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080 |
Definition at line 147 of file qglpixelbuffer_win.cpp.
#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082 |
Definition at line 149 of file qglpixelbuffer_win.cpp.
#define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D |
Definition at line 144 of file qglpixelbuffer_win.cpp.
#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F |
Definition at line 146 of file qglpixelbuffer_win.cpp.
#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081 |
Definition at line 148 of file qglpixelbuffer_win.cpp.
#define WGL_TEXTURE_FORMAT_ARB 0x2072 |
Definition at line 133 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_TEXTURE_RGB_ARB 0x2075 |
Definition at line 136 of file qglpixelbuffer_win.cpp.
#define WGL_TEXTURE_RGBA_ARB 0x2076 |
Definition at line 137 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_TEXTURE_TARGET_ARB 0x2073 |
Definition at line 134 of file qglpixelbuffer_win.cpp.
Referenced by qt_format_to_attrib_list().
#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A |
Definition at line 93 of file qglpixelbuffer_win.cpp.
#define WGL_TRANSPARENT_ARB 0x200A |
Definition at line 89 of file qglpixelbuffer_win.cpp.
#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 |
Definition at line 92 of file qglpixelbuffer_win.cpp.
#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 |
Definition at line 91 of file qglpixelbuffer_win.cpp.
#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B |
Definition at line 94 of file qglpixelbuffer_win.cpp.
#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 |
Definition at line 90 of file qglpixelbuffer_win.cpp.
#define WGL_TYPE_COLORINDEX_ARB 0x202C |
Definition at line 127 of file qglpixelbuffer_win.cpp.
#define WGL_TYPE_RGBA_ARB 0x202B |
Definition at line 126 of file qglpixelbuffer_win.cpp.
typedef BOOL(WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer) |
Definition at line 63 of file qglpixelbuffer_win.cpp.
typedef BOOL(WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats) |
Definition at line 62 of file qglpixelbuffer_win.cpp.
typedef HPBUFFERARB(WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList) |
Definition at line 55 of file qglpixelbuffer_win.cpp.
typedef BOOL(WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer) |
Definition at line 58 of file qglpixelbuffer_win.cpp.
typedef const char*(WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc) |
Definition at line 54 of file qglpixelbuffer_win.cpp.
typedef HDC(WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer) |
Definition at line 56 of file qglpixelbuffer_win.cpp.
typedef BOOL(WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues) |
Definition at line 61 of file qglpixelbuffer_win.cpp.
typedef BOOL(WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues) |
Definition at line 60 of file qglpixelbuffer_win.cpp.
typedef BOOL(WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue) |
Definition at line 59 of file qglpixelbuffer_win.cpp.
typedef int(WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC) |
Definition at line 57 of file qglpixelbuffer_win.cpp.
typedef BOOL(WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer) |
Definition at line 64 of file qglpixelbuffer_win.cpp.
typedef BOOL(WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList) |
Definition at line 65 of file qglpixelbuffer_win.cpp.
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 181 of file qglpixelbuffer_win.cpp.