SDL2lazy
Public Attributes | List of all members
SlRenderSettings Struct Reference

#include <SlSprite.h>

Public Attributes

SDL_Rect destinationRect = {0,0,0,0}
 
uint8_t color [4] = {0x00, 0x00, 0x00, 0xFF}
 
uint32_t renderOptions = SL_RENDER_DEFAULT
 
double angle = 0
 

Detailed Description

Contains the destination rectangle, the color (for SDL_SetColorMod), and the render options.

Member Data Documentation

double SlRenderSettings::angle = 0

Angle by which the sprite will be rotated.

uint8_t SlRenderSettings::color[4] = {0x00, 0x00, 0x00, 0xFF}

red, green, blue, alpha

Used for SL_RENDER_COLORMOD (SDL_SetTextureColorMod) and SL_RENDER_ALPHAMOD (SDL_SetTextureAlphaMod). Also used as fill colour when creating texture from rectangle. Initialized to black and max alpha.

SDL_Rect SlRenderSettings::destinationRect = {0,0,0,0}

Holds the location where the sprite will be rendered in the window.

uint32_t SlRenderSettings::renderOptions = SL_RENDER_DEFAULT

SlRenderOptions for the texture.


The documentation for this struct was generated from the following file: