![]() |
Qt 6.x
The Qt SDK
|
A temporary context that can be instantiated on the stack. More...
Collaboration diagram for QOpenGLTemporaryContext: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.