IDeviceContextGL struct
Exposes OpenGL-specific functionality of a device context.
Contents
- Reference
Base classes
- struct IDeviceContext
- Device context interface.
Public functions
- auto UpdateCurrentGLContext() -> bool METHOD() virtual
- Attaches to the active GL context in the thread.
- auto SetSwapChain(struct ISwapChainGL* pSwapChain) -> void METHOD() virtual
- Sets the swap in the device context. The swap chain is used by the device context to obtain the default FBO handle.
Function documentation
bool METHOD() Diligent:: IDeviceContextGL:: UpdateCurrentGLContext() virtual
Attaches to the active GL context in the thread.
| Returns | false if there is no active GL context, and true otherwise |
|---|
If an application uses multiple GL contexts, this method must be called before any other command to let the engine update active context every time when control flow is passed over from the main application