Class that represents the WGL context.
More...
#include <kanzi/core.ui/platform/graphics_context_ng/wgl/wgl_context.hpp>
|
static PROC | getProcAddress (const char *functionName) noexcept |
| Gets the pointer to a GL function. More...
|
|
Class that represents the WGL context.
- Since
- Kanzi 3.9.7
Constructor.
- Parameters
-
deviceContext | The device context for which to create the WGL context. |
formatID | The graphics format ID with which to select the pixel format. To select the default pixel format, use 0. |
kanzi::win32::WGLContext::WGLContext |
( |
HDC |
deviceContextHandle | ) |
|
|
explicit |
Constructor.
- Parameters
-
deviceContextHandle | The native device context for which to create the WGL context. |
kanzi::win32::WGLContext::WGLContext |
( |
HGLRC |
renderContext | ) |
|
|
explicit |
Constructor.
- Parameters
-
renderContext | WGL render context handle. |
static PROC kanzi::win32::WGLContext::getProcAddress |
( |
const char * |
functionName | ) |
|
|
staticnoexcept |
Gets the pointer to a GL function.
- Parameters
-
functionName | Name of the GL function for which to get the pointer. |
- Returns
- Pointer to the function. If the function is not found, null.
Activates WGL context for the current thread.
- Parameters
-
deviceContext | The device context for which to activate the current thread. |
- Returns
- On success, true, otherwise false.
bool kanzi::win32::WGLContext::makeCurrent |
( |
HDC |
deviceContextHandle | ) |
|
|
noexcept |
Activates the WGL context for the current thread.
- Parameters
-
deviceContextHandle | The native device context for which to activate the current thread. |
- Returns
- On success, true, otherwise false.
bool kanzi::win32::WGLContext::releaseCurrent |
( |
| ) |
|
|
noexcept |
Deactivates the WGL context for the current thread.
- Returns
- On success, true, otherwise false.
KZ_NO_DISCARD HGLRC kanzi::win32::WGLContext::getNativeHandle |
( |
| ) |
const |
|
noexcept |
Gets the WGL render context handle.
- Returns
- The WGL render context handle.
The documentation for this class was generated from the following file: