149 void draw(SDL_Renderer *
const renderTarget, SDL_Rect *
const renderTargetRect)
override;
int d_height
The height of the Text object.
Definition: Sprite.hpp:24
void setFlip(SDL_RendererFlip &type)
Set the flip type for the Sprite (SDL_FLIP_NONE, SDL_FLIP_HORIZONTAL, SDL_FLIP_VERTICAL).
Definition: Sprite.hpp:134
const SDL_Point & getCenter()
Get the current center point of the Sprite.
Definition: Sprite.hpp:123
void setTexture(Texture *const texture)
Set the Sprite texture.
Definition: Sprite.hpp:85
spriteData m_data
Data important to the construction and state maintenance of a Sprite.
Definition: Sprite.hpp:152
Data necessary for representing the Sprite.
Definition: Sprite.hpp:15
void setBoundsRect(SDL_Rect &rect)
Set the bounding rectangle for the Sprite.
Definition: Sprite.hpp:98
const SDL_RendererFlip & getFlip()
Get the current flip type for the Sprite (default is SDL_FLIP_NONE).
Definition: Sprite.hpp:141
Texture * d_texture
Pointer to a Texture object (memory NOT managed in this class!).
Definition: Sprite.hpp:17
Texture *const getTexture()
Get the Sprite texture.
Definition: Sprite.hpp:91
Drawable sprite using a Texture as its drawable resource. Part of the Decorator pattern along with th...
Definition: Sprite.hpp:32
int d_width
The width of the Text object.
Definition: Sprite.hpp:23
SDL_Color d_backgroundColor
The color of the background (bounding box) of the Text.
Definition: Sprite.hpp:21
void draw(SDL_Renderer *const renderTarget, SDL_Rect *const renderTargetRect) override
Draw the Sprite to a render target.
Definition: Sprite.hpp:141
SDL_Rect d_boundsRect
SDL_Rect setting the bounding rectangle for the Sprite object.
Definition: Sprite.hpp:18
const SDL_Rect & getBoundsRect()
Get the current bounding rectangle of the Sprite.
Definition: Sprite.hpp:112
SDL_Point d_center
An SDL_Point used to set the center of the Text object.
Definition: Sprite.hpp:19
Interface for creating drawable entities. Part of the Decorator pattern for drawable objects used in ...
Definition: Drawable.hpp:15
SDL_RendererFlip d_flip
An SDL_RendererFlip value setting how to flip the Text (default is SDL_FLIP_NONE).
Definition: Sprite.hpp:20
spriteData & getSpriteData()
Get the current spriteData for the Sprite object.
Definition: Sprite.hpp:78
Transform d_transform
The raw transform data for the Text object.
Definition: Sprite.hpp:22
Sprite()
Default constructor.
void setSpriteData(spriteData &s)
Set the data for the Sprite object.
Definition: Sprite.hpp:71
void updateSprite()
Used internally when the render mode is initialized or changed.
A class implemented using the Facade pattern used for loading SDL_Texture data.
Definition: Texture.hpp:16