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>
Protected Member Functions | |
| GlResource () | |
| Default constructor. | |
| ~GlResource () | |
| Destructor. | |
Static Protected Member Functions | |
| static void | ensureGlContext () |
| Make sure that a valid OpenGL context exists in the current thread. | |
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 40 of file GlResource.hpp.
|
protected |
Default constructor.
|
protected |
Destructor.
|
staticprotected |
Make sure that a valid OpenGL context exists in the current thread.