void pushSpriteToScreen(SDL_Renderer *renderer, C_Vec2 pos, C_Vec2 spritePos, C_Vec2 spriteDimensions)
Pushes the image to the Renderer at the XY Coordinates. Only displays the source rectangle inputed...
Definition: C_Texture.cpp:136
C_Texture(SDL_Renderer *renderer, int r, int g, int b)
Constructs the Texture using an RGB value. This will create a 1x1 rectangle of that colour that can b...
Definition: C_Texture.cpp:3
C_Vec2 getDimensions()
Gets the Texture dimensions.
Definition: C_Texture.cpp:105
~C_Texture()
Destructs Texture.
Definition: C_Texture.cpp:94
C_Vec2 dimensions
The Texture dimensions.
Definition: C_Texture.h:120
SDL_Texture * getTexture()
Gets a pointer to the Texture.
Definition: C_Texture.cpp:100
void setColourTint(int r, int g, int b)
Tints the texture with the inputed colour.
Definition: C_Texture.cpp:176
SDL_Texture * textureData
The Texture data.
Definition: C_Texture.h:118
void pushToScreen(SDL_Renderer *renderer, C_Vec2 pos)
Pushes the image to the Renderer at the XY Coordinates.
Definition: C_Texture.cpp:110
Creates a Texture for use with a renderer.
Definition: C_Texture.h:13