31     C_Text(std::string text, std::string fontLocation, 
int fontSize, SDL_Renderer* renderer);
 
   42     C_Text(std::string text, std::string fontLocation, SDL_Renderer* renderer, 
int r, 
int g, 
int b);
 
   51     C_Text(std::string text, std::string fontLocation, SDL_Renderer* renderer, SDL_Colour 
fontColour);
 
   63     C_Text(std::string text, std::string fontLocation, 
int fontSize, SDL_Renderer* renderer, 
int r, 
int g, 
int b);
 
   73     C_Text(std::string text, std::string fontLocation, 
int fontSize, SDL_Renderer* renderer, SDL_Colour fontColour);
 
  110     void setFont(std::string fontLocation);
 
  116     void setText(std::string text);
 
void setFont(std::string fontLocation)
Sets the font of the text. 
Definition: C_Text.cpp:146
 
Creates a Text Texture for use with a renderer using the Text formating. 
Definition: C_Text.h:13
 
void setFontSize(int fontSize)
Sets the font size of the text. 
Definition: C_Text.cpp:128
 
C_Vec2 dimensions
The Texture dimensions. 
Definition: C_Text.h:138
 
Contains the Vec2 structure with functions and overloaded operators. 
Definition: C_Vec2.h:7
 
std::string fontLocation
Definition: C_Text.h:136
 
~C_Text()
Destructs the Text Texture. 
Definition: C_Text.cpp:82
 
C_Vec2 getDimensions()
Gets the dimensions of the Text Texture. 
Definition: C_Text.cpp:173
 
TTF_Font * font
Font. 
Definition: C_Text.h:126
 
void pushToScreen(C_Vec2 pos)
Pushes the Text Texture to the Renderer to the XY Coordinates. 
Definition: C_Text.cpp:91
 
int fontSize
Font size. 
Definition: C_Text.h:134
 
void setColour(int r, int g, int b)
Sets the colour of the text. 
Definition: C_Text.cpp:104
 
void createTextTexture()
Creates a Text Texture using the Text data. 
Definition: C_Text.cpp:178
 
SDL_Colour fontColour
Font colour. 
Definition: C_Text.h:128
 
SDL_Renderer * renderer
A pointer to the render. 
Definition: C_Text.h:132
 
C_Text(std::string text, std::string fontLocation, SDL_Renderer *renderer)
Constructs the Text Texture. Font size and colour will be default (size 10 and black). 
Definition: C_Text.cpp:3
 
SDL_Texture * textureData
The Texture data. 
Definition: C_Text.h:130
 
void setText(std::string text)
Sets the text. 
Definition: C_Text.cpp:161
 
std::string text
The text and font location. 
Definition: C_Text.h:136