SDL_gpu
0.11.0
A hardware-accelerated, cross-platform 2D graphics API
|
Data Structures | |
struct | GPU_RendererID |
DECLSPEC GPU_RendererEnum SDLCALL | GPU_ReserveNextRendererEnum (void) |
DECLSPEC int SDLCALL | GPU_GetNumActiveRenderers (void) |
DECLSPEC void SDLCALL | GPU_GetActiveRendererList (GPU_RendererID *renderers_array) |
DECLSPEC GPU_Renderer *SDLCALL | GPU_GetCurrentRenderer (void) |
DECLSPEC void SDLCALL | GPU_SetCurrentRenderer (GPU_RendererID id) |
DECLSPEC GPU_Renderer *SDLCALL | GPU_GetRenderer (GPU_RendererID id) |
DECLSPEC void SDLCALL | GPU_FreeRenderer (GPU_Renderer *renderer) |
DECLSPEC void SDLCALL | GPU_ResetRendererState (void) |
DECLSPEC void SDLCALL | GPU_SetCoordinateMode (GPU_bool use_math_coords) |
DECLSPEC GPU_bool SDLCALL | GPU_GetCoordinateMode (void) |
DECLSPEC void SDLCALL | GPU_SetDefaultAnchor (float anchor_x, float anchor_y) |
DECLSPEC void SDLCALL | GPU_GetDefaultAnchor (float *anchor_x, float *anchor_y) |
DECLSPEC void SDLCALL GPU_FreeRenderer | ( | GPU_Renderer * | renderer | ) |
Definition at line 480 of file SDL_gpu_renderer.c.
DECLSPEC void SDLCALL GPU_GetActiveRendererList | ( | GPU_RendererID * | renderers_array | ) |
Gets an array of identifiers for the active renderers.
Definition at line 59 of file SDL_gpu_renderer.c.
DECLSPEC GPU_Renderer* SDLCALL GPU_GetCurrentRenderer | ( | void | ) |
DECLSPEC void SDLCALL GPU_GetDefaultAnchor | ( | float * | anchor_x, |
float * | anchor_y | ||
) |
Returns the default image blitting anchor through the given variables.
DECLSPEC int SDLCALL GPU_GetNumActiveRenderers | ( | void | ) |
Gets the number of active (created) renderers.
Definition at line 43 of file SDL_gpu_renderer.c.
DECLSPEC GPU_Renderer* SDLCALL GPU_GetRenderer | ( | GPU_RendererID | id | ) |
Definition at line 411 of file SDL_gpu_renderer.c.
DECLSPEC GPU_RendererEnum SDLCALL GPU_ReserveNextRendererEnum | ( | void | ) |
Gets the next enum ID that can be used for a custom renderer.
Definition at line 37 of file SDL_gpu_renderer.c.
DECLSPEC void SDLCALL GPU_ResetRendererState | ( | void | ) |
DECLSPEC void SDLCALL GPU_SetCoordinateMode | ( | GPU_bool | use_math_coords | ) |
Sets the coordinate mode for this renderer. Target and image coordinates will be either "inverted" (0,0 is the upper left corner, y increases downward) or "mathematical" (0,0 is the bottom-left corner, y increases upward). The default is inverted (0), as this is traditional for 2D graphics.
inverted | 0 is for inverted coordinates, 1 is for mathematical coordinates |
DECLSPEC void SDLCALL GPU_SetCurrentRenderer | ( | GPU_RendererID | id | ) |
DECLSPEC void SDLCALL GPU_SetDefaultAnchor | ( | float | anchor_x, |
float | anchor_y | ||
) |
Sets the default image blitting anchor for newly created images.