Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
A temporary context that can be instantiated on the stack. More...
Public Member Functions | |
QOpenGLTemporaryContext () | |
~QOpenGLTemporaryContext () | |
A temporary context that can be instantiated on the stack.
Functions like wglGetProcAddress() or glGetString() only work if there is a current GL context.
Definition at line 893 of file qwindowsglcontext.cpp.
QOpenGLTemporaryContext::QOpenGLTemporaryContext | ( | ) |
Definition at line 905 of file qwindowsglcontext.cpp.
References QOpenGLContextData::hdc, QOpenGLStaticContext::opengl32, and QOpenGLContextData::renderingContext.
QOpenGLTemporaryContext::~QOpenGLTemporaryContext | ( | ) |
Definition at line 912 of file qwindowsglcontext.cpp.
References QOpenGLContextData::hdc, QOpenGLContextData::hwnd, QOpenGLStaticContext::opengl32, and QOpenGLContextData::renderingContext.