Context.h File Reference

#include <SFML/Config.h>

Go to the source code of this file.


Typedefs

typedef sfContext sfContext
 Class wrapping an OpenGL context with no window.

Functions

CSFML_API sfContextsfContext_Create ()
 Construct a new context.
CSFML_API void sfContext_Destroy (sfContext *Context)
 Destroy an existing context.
CSFML_API void sfContext_SetActive (sfContext *Context, sfBool Active)
 Activate or deactivate a context.

Typedef Documentation

typedef struct sfContext sfContext

Class wrapping an OpenGL context with no window.

This class is for internal use mainly, it is required to solve tricky problems involving multi-threading

Definition at line 39 of file Context.h.


Function Documentation

CSFML_API sfContext* sfContext_Create (  ) 

Construct a new context.

Returns:
New context

CSFML_API void sfContext_Destroy ( sfContext Context  ) 

Destroy an existing context.

Parameters:
Context : Context to destroy

CSFML_API void sfContext_SetActive ( sfContext Context,
sfBool  Active 
)

Activate or deactivate a context.

Parameters:
Context : Context to activate or deactivate
Active : sfTrue to activate, sfFalse to deactivate