MaterialX 1.38.10
Loading...
Searching...
No Matches
GLContext Class Reference

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
 

Detailed Description

An OpenGL context singleton.


The documentation for this class was generated from the following files: