SDL_gpu
0.11.0
A hardware-accelerated, cross-platform 2D graphics API
|
Data Structures | |
struct | GPU_Context |
DECLSPEC GPU_Target *SDLCALL | GPU_GetContextTarget (void) |
DECLSPEC GPU_Target *SDLCALL | GPU_GetWindowTarget (Uint32 windowID) |
DECLSPEC GPU_Target *SDLCALL | GPU_CreateTargetFromWindow (Uint32 windowID) |
DECLSPEC void SDLCALL | GPU_MakeCurrent (GPU_Target *target, Uint32 windowID) |
DECLSPEC GPU_bool SDLCALL | GPU_SetWindowResolution (Uint16 w, Uint16 h) |
DECLSPEC GPU_bool SDLCALL | GPU_SetFullscreen (GPU_bool enable_fullscreen, GPU_bool use_desktop_resolution) |
DECLSPEC GPU_bool SDLCALL | GPU_GetFullscreen (void) |
DECLSPEC void SDLCALL | GPU_SetShapeBlending (GPU_bool enable) |
DECLSPEC GPU_BlendMode SDLCALL | GPU_GetBlendModeFromPreset (GPU_BlendPresetEnum preset) |
DECLSPEC void SDLCALL | GPU_SetShapeBlendFunction (GPU_BlendFuncEnum source_color, GPU_BlendFuncEnum dest_color, GPU_BlendFuncEnum source_alpha, GPU_BlendFuncEnum dest_alpha) |
DECLSPEC void SDLCALL | GPU_SetShapeBlendEquation (GPU_BlendEqEnum color_equation, GPU_BlendEqEnum alpha_equation) |
DECLSPEC void SDLCALL | GPU_SetShapeBlendMode (GPU_BlendPresetEnum mode) |
DECLSPEC float SDLCALL | GPU_SetLineThickness (float thickness) |
DECLSPEC float SDLCALL | GPU_GetLineThickness (void) |
DECLSPEC GPU_Target* SDLCALL GPU_CreateTargetFromWindow | ( | Uint32 | windowID | ) |
Creates a separate context for the given window using the current renderer and returns a GPU_Target that represents it.
DECLSPEC GPU_BlendMode SDLCALL GPU_GetBlendModeFromPreset | ( | GPU_BlendPresetEnum | preset | ) |
DECLSPEC GPU_Target* SDLCALL GPU_GetContextTarget | ( | void | ) |
DECLSPEC GPU_bool SDLCALL GPU_GetFullscreen | ( | void | ) |
DECLSPEC float SDLCALL GPU_GetLineThickness | ( | void | ) |
Returns the current line thickness value.
Definition at line 22 of file SDL_gpu_shapes.c.
DECLSPEC GPU_Target* SDLCALL GPU_GetWindowTarget | ( | Uint32 | windowID | ) |
DECLSPEC void SDLCALL GPU_MakeCurrent | ( | GPU_Target * | target, |
Uint32 | windowID | ||
) |
DECLSPEC GPU_bool SDLCALL GPU_SetFullscreen | ( | GPU_bool | enable_fullscreen, |
GPU_bool | use_desktop_resolution | ||
) |
Enable/disable fullscreen mode for the current context target's window. On some platforms, this may destroy the renderer context and require that textures be reloaded. Unfortunately, SDL does not provide a notification mechanism for this.
enable_fullscreen | If true, make the application go fullscreen. If false, make the application go to windowed mode. |
use_desktop_resolution | If true, lets the window change its resolution when it enters fullscreen mode (via SDL_WINDOW_FULLSCREEN_DESKTOP). |
DECLSPEC float SDLCALL GPU_SetLineThickness | ( | float | thickness | ) |
Sets the thickness of lines for the current context.
thickness | New line thickness in pixels measured across the line. Default is 1.0f. |
Definition at line 16 of file SDL_gpu_shapes.c.
DECLSPEC void SDLCALL GPU_SetShapeBlendEquation | ( | GPU_BlendEqEnum | color_equation, |
GPU_BlendEqEnum | alpha_equation | ||
) |
DECLSPEC void SDLCALL GPU_SetShapeBlendFunction | ( | GPU_BlendFuncEnum | source_color, |
GPU_BlendFuncEnum | dest_color, | ||
GPU_BlendFuncEnum | source_alpha, | ||
GPU_BlendFuncEnum | dest_alpha | ||
) |
DECLSPEC void SDLCALL GPU_SetShapeBlending | ( | GPU_bool | enable | ) |
DECLSPEC void SDLCALL GPU_SetShapeBlendMode | ( | GPU_BlendPresetEnum | mode | ) |
DECLSPEC GPU_bool SDLCALL GPU_SetWindowResolution | ( | Uint16 | w, |
Uint16 | h | ||
) |
Change the actual size of the current context target's window. This resets the virtual resolution and viewport of the context target. Aside from direct resolution changes, this should also be called in response to SDL_WINDOWEVENT_RESIZED window events for resizable windows.