Jamie Slowgrove - AI Assignment 1
Line of Sight & A* path-finding
 All Classes Namespaces Files Functions Variables
text.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <SDL_ttf.h>
5 #include <string>
6 #include <iostream>
7 
12 class Text
13 {
14 private:
15  /*font*/
16  TTF_Font * font;
17  /*font colour*/
18  SDL_Color fontColour;
20  SDL_Texture* textureData;
21 public:
22 
34  Text(std::string, std::string, SDL_Renderer*, int, int, int);
35 
40  ~Text();
41 
46  SDL_Texture* getTexture();
47 
57  void pushToScreen(SDL_Renderer*, int, int, int, int);
58 };
Creates a Text Texture for use with a renderer Creates a Text Texture from an image file...
Definition: text.h:12
void pushToScreen(SDL_Renderer *, int, int, int, int)
Definition: text.cpp:49
SDL_Texture * textureData
Definition: text.h:20
~Text()
Definition: text.cpp:28
SDL_Color fontColour
Definition: text.h:18
TTF_Font * font
Definition: text.h:16
Text(std::string, std::string, SDL_Renderer *, int, int, int)
Definition: text.cpp:6
SDL_Texture * getTexture()
Definition: text.cpp:40