-
Notifications
You must be signed in to change notification settings - Fork 0
coSprite (struct)
Stephen P edited this page Nov 1, 2020
·
3 revisions
The struct that holds specific details about the initialized CoSprite system. The variable global holds the current initialization, and that should for most applications be all that is necessary.
SDL_Window* window
The SDL_Window* that is currently open.
SDL_Renderer* mainRenderer
The main renderer used for any drawing operations.
TTF_Font* mainFont
The main font used for rendering text.
int windowW
The window height, in pixels.
int windowH
The window width, in pixels.
SDL_Color colorKey
The color that is to interpreted as transparent.
bool canDrawText
If true, SDL_TTF has properly initialized and you are able to render and draw text.
int renderLayers
The amount of layers that are allocated for any cScene or c2DModel drawing operation.