FS#84 - Rewrite the OpenGL context handling
FS#66 - Free the global rendering context Added thread-local storage classes git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1116 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
3e23e46a64
commit
23bf546b6a
44 changed files with 1263 additions and 405 deletions
|
@ -32,11 +32,7 @@
|
|||
|
||||
struct sfContext
|
||||
{
|
||||
sfContext() : This(sf::Context::New()) {}
|
||||
|
||||
~sfContext() {delete This;}
|
||||
|
||||
sf::Context* This;
|
||||
sf::Context This;
|
||||
};
|
||||
|
||||
|
||||
|
@ -63,5 +59,5 @@ void sfContext_Destroy(sfContext* Context)
|
|||
////////////////////////////////////////////////////////////
|
||||
void sfContext_SetActive(sfContext* Context, sfBool Active)
|
||||
{
|
||||
CSFML_CALL_PTR(Context, SetActive(Active == sfTrue))
|
||||
CSFML_CALL(Context, SetActive(Active == sfTrue))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue