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.
Class wrapping an OpenGL context. More...
#include <SFML/Window/Context.hpp>
Public Member Functions | |
| Context () | |
| Default constructor, create the context. | |
| ~Context () | |
| Destructor, destroy the context. | |
| void | SetActive (bool Active) |
| Activate or deactivate the context. | |
Static Public Member Functions | |
| static bool | IsContextActive () |
| Check if there's a context bound to the current thread. | |
| static Context & | GetGlobal () |
| Get the global context. | |
Class wrapping an OpenGL context.
All SFML windows already have their own context, so this class is more a helper for specific issues involving OpenGL and multi-threading. It's meant to be used internally.
Definition at line 49 of file Context.hpp.
| sf::Context::Context | ( | ) |
Default constructor, create the context.
| sf::Context::~Context | ( | ) |
Destructor, destroy the context.
|
static |
Get the global context.
|
static |
Check if there's a context bound to the current thread.
| void sf::Context::SetActive | ( | bool | Active | ) |
Activate or deactivate the context.
| Active | : True to activate the context, false to deactivate it |