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:
laurentgom 2009-05-31 11:38:54 +00:00
parent 3e23e46a64
commit 23bf546b6a
44 changed files with 1263 additions and 405 deletions

View file

@ -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))
}