Skip to content

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.

Members

windows

SDL_Window* window
The SDL_Window* that is currently open.

mainRenderer

SDL_Renderer* mainRenderer
The main renderer used for any drawing operations.

mainFont

TTF_Font* mainFont
The main font used for rendering text.

windowW

int windowW
The window height, in pixels.

windowH

int windowH
The window width, in pixels.

colorKey

SDL_Color colorKey
The color that is to interpreted as transparent.

canDrawText

bool canDrawText
If true, SDL_TTF has properly initialized and you are able to render and draw text.

renderLayers

int renderLayers
The amount of layers that are allocated for any cScene or c2DModel drawing operation.

Clone this wiki locally