|
MaterialX 1.38.2
|
An OpenGL context singleton. More...
#include <GLContext.h>
Public Member Functions | |
| virtual | ~GLContext () |
| Default destructor. | |
| HardwareContextHandle | contextHandle () const |
| Return OpenGL context handle. | |
| bool | isValid () const |
| Return if context is valid. | |
| int | makeCurrent () |
| Make the context "current" before execution of OpenGL operations. | |
Static Public Member Functions | |
| static GLContextPtr | create (SimpleWindowPtr window, HardwareContextHandle context={}) |
| Create a new context. | |
Protected Member Functions | |
| GLContext (SimpleWindowPtr window, HardwareContextHandle context=0) | |
Protected Attributes | |
| SimpleWindowPtr | _window |
| HardwareContextHandle | _contextHandle |
| bool | _isValid |
An OpenGL context singleton.