![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Static Open GL context containing version information, extension function pointers, etc. More...
#include <qwindowsglcontext.h>
Public Types | |
| enum | Extensions { SampleBuffers = 0x1 , sRGBCapableFramebuffer = 0x2 , Robustness = 0x4 } |
| typedef bool(APIENTRY * | WglGetPixelFormatAttribIVARB) (HDC hdc, int iPixelFormat, int iLayerPlane, uint nAttributes, const int *piAttributes, int *piValues) |
| typedef bool(APIENTRY * | WglChoosePixelFormatARB) (HDC hdc, const int *piAttribList, const float *pfAttribFList, uint nMaxFormats, int *piFormats, UINT *nNumFormats) |
| typedef HGLRC(APIENTRY * | WglCreateContextAttribsARB) (HDC, HGLRC, const int *) |
| typedef BOOL(APIENTRY * | WglSwapInternalExt) (int interval) |
| typedef int(APIENTRY * | WglGetSwapInternalExt) (void) |
| typedef const char *(APIENTRY * | WglGetExtensionsStringARB) (HDC) |
Public Member Functions | |
| bool | hasExtensions () const |
| QWindowsOpenGLContext * | createContext (QOpenGLContext *context) override |
| QWindowsOpenGLContext * | createContext (HGLRC context, HWND window) override |
| void * | moduleHandle () const override |
| QOpenGLContext::OpenGLModuleType | moduleType () const override |
| bool | supportsThreadedOpenGL () const override |
| Public Member Functions inherited from QWindowsStaticOpenGLContext | |
| virtual | ~QWindowsStaticOpenGLContext ()=default |
| virtual void * | createWindowSurface (void *, void *, int *) |
| virtual void | destroyWindowSurface (void *) |
Static Public Member Functions | |
| static QOpenGLStaticContext * | create (bool softwareRendering=false) |
| static QByteArray | getGlString (unsigned int which) |
| Static Public Member Functions inherited from QWindowsStaticOpenGLContext | |
| static QWindowsStaticOpenGLContext * | create () |
Static Public Attributes | |
| static QWindowsOpengl32DLL | opengl32 |
Additional Inherited Members | |
| Protected Member Functions inherited from QWindowsStaticOpenGLContext | |
| QWindowsStaticOpenGLContext ()=default | |
Static Open GL context containing version information, extension function pointers, etc.
Functions pending integration in the next version of OpenGL are post-fixed ARB.
No WGL or OpenGL functions are called directly from the windows plugin. Instead, the static context loads opengl32.dll and resolves the necessary functions. This allows building the plugin without linking to opengl32 and enables QT_OPENGL_DYNAMIC builds where both the EGL and WGL (this) based implementation of the context are built.
Definition at line 102 of file qwindowsglcontext.h.
| typedef bool(APIENTRY * QOpenGLStaticContext::WglChoosePixelFormatARB) (HDC hdc, const int *piAttribList, const float *pfAttribFList, uint nMaxFormats, int *piFormats, UINT *nNumFormats) |
Definition at line 119 of file qwindowsglcontext.h.
| typedef HGLRC(APIENTRY * QOpenGLStaticContext::WglCreateContextAttribsARB) (HDC, HGLRC, const int *) |
Definition at line 124 of file qwindowsglcontext.h.
| typedef const char *(APIENTRY * QOpenGLStaticContext::WglGetExtensionsStringARB) (HDC) |
Definition at line 132 of file qwindowsglcontext.h.
| typedef bool(APIENTRY * QOpenGLStaticContext::WglGetPixelFormatAttribIVARB) (HDC hdc, int iPixelFormat, int iLayerPlane, uint nAttributes, const int *piAttributes, int *piValues) |
Definition at line 114 of file qwindowsglcontext.h.
Definition at line 129 of file qwindowsglcontext.h.
| typedef BOOL(APIENTRY * QOpenGLStaticContext::WglSwapInternalExt) (int interval) |
Definition at line 127 of file qwindowsglcontext.h.
| Enumerator | |
|---|---|
| SampleBuffers | |
| sRGBCapableFramebuffer | |
| Robustness | |
Definition at line 107 of file qwindowsglcontext.h.
|
static |
Definition at line 999 of file qwindowsglcontext.cpp.
References QWindowsOpengl32DLL::init(), and opengl32.
|
overridevirtual |
Implements QWindowsStaticOpenGLContext.
Definition at line 199 of file qwindowsglcontext.cpp.
|
overridevirtual |
Implements QWindowsStaticOpenGLContext.
Definition at line 194 of file qwindowsglcontext.cpp.
|
static |
Definition at line 992 of file qwindowsglcontext.cpp.
References opengl32.
|
inline |
Definition at line 135 of file qwindowsglcontext.h.
Referenced by ARB::choosePixelFormat(), ARB::createContext(), operator<<(), and ARB::qSurfaceFormatFromHDC().
|
inlineoverridevirtual |
Implements QWindowsStaticOpenGLContext.
Definition at line 143 of file qwindowsglcontext.h.
References QWindowsOpengl32DLL::moduleHandle(), and opengl32.
|
inlineoverridevirtual |
Implements QWindowsStaticOpenGLContext.
Definition at line 144 of file qwindowsglcontext.h.
|
inlineoverridevirtual |
Reimplemented from QWindowsStaticOpenGLContext.
Definition at line 149 of file qwindowsglcontext.h.
References QWindowsOpengl32DLL::moduleIsNotOpengl32(), and opengl32.
| const QWindowsOpenGLContextFormat QOpenGLStaticContext::defaultFormat |
Definition at line 156 of file qwindowsglcontext.h.
| const QByteArray QOpenGLStaticContext::extensionNames |
Definition at line 154 of file qwindowsglcontext.h.
| unsigned QOpenGLStaticContext::extensions |
Definition at line 155 of file qwindowsglcontext.h.
Referenced by QWindowsGLContext::QWindowsGLContext(), ARB::choosePixelFormat(), operator<<(), and ARB::qSurfaceFormatFromHDC().
|
static |
Definition at line 165 of file qwindowsglcontext.h.
Referenced by QOpenGLTemporaryContext::QOpenGLTemporaryContext(), QWindowsGLContext::QWindowsGLContext(), QOpenGLTemporaryContext::~QOpenGLTemporaryContext(), QWindowsGLContext::~QWindowsGLContext(), ARB::choosePixelFormat(), GDI::choosePixelFormat(), create(), GDI::createContext(), createDummyGLContext(), QWindowsOpenGLContextFormat::current(), currentOpenGLContextData(), describeFormats(), QWindowsGLContext::doneCurrent(), getGlString(), QWindowsGLContext::getProcAddress(), QWindowsGLContext::makeCurrent(), moduleHandle(), supportsThreadedOpenGL(), and QWindowsGLContext::swapBuffers().
| const QByteArray QOpenGLStaticContext::renderer |
Definition at line 153 of file qwindowsglcontext.h.
| const QByteArray QOpenGLStaticContext::vendor |
Definition at line 152 of file qwindowsglcontext.h.
| WglChoosePixelFormatARB QOpenGLStaticContext::wglChoosePixelFormatARB |
Definition at line 159 of file qwindowsglcontext.h.
| WglCreateContextAttribsARB QOpenGLStaticContext::wglCreateContextAttribsARB |
Definition at line 160 of file qwindowsglcontext.h.
| WglGetExtensionsStringARB QOpenGLStaticContext::wglGetExtensionsStringARB |
Definition at line 163 of file qwindowsglcontext.h.
| WglGetPixelFormatAttribIVARB QOpenGLStaticContext::wglGetPixelFormatAttribIVARB |
Definition at line 158 of file qwindowsglcontext.h.
| WglGetSwapInternalExt QOpenGLStaticContext::wglGetSwapInternalExt |
Definition at line 162 of file qwindowsglcontext.h.
| WglSwapInternalExt QOpenGLStaticContext::wglSwapInternalExt |
Definition at line 161 of file qwindowsglcontext.h.