Warning
This page refers to an old version of SFML. Click here to switch to the latest version.
Warning
This page refers to an old version of SFML. Click here to switch to the latest version.
Base class for classes that require an OpenGL context. More...
#include <SFML/Window/GlResource.hpp>
Classes | |
| class | TransientContextLock |
| RAII helper class to temporarily lock an available context for use. More... | |
Protected Member Functions | |
| GlResource () | |
| Default constructor. | |
| ~GlResource () | |
| Destructor. | |
Static Protected Member Functions | |
| static void | ensureGlContext () |
| Empty function for ABI compatibility, use acquireTransientContext instead. | |
Base class for classes that require an OpenGL context.
This class is for internal use only, it must be the base of every class that requires a valid OpenGL context in order to work.
Definition at line 44 of file GlResource.hpp.
|
protected |
Default constructor.
|
protected |
Destructor.
|
staticprotected |
Empty function for ABI compatibility, use acquireTransientContext instead.