Jamie Slowgrove - AI Assignment 1
Line of Sight & A* path-finding
 All Classes Namespaces Files Functions Variables
texture.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <SDL_image.h>
5 #include <string>
6 #include <iostream>
7 
13 class Texture
14 {
15 private:
17  SDL_Texture* textureData;
21 public:
30  Texture(SDL_Renderer*, int, int, int);
31 
38  Texture(std::string, SDL_Renderer*);
39 
48  Texture(std::string, SDL_Renderer*, bool);
49 
54  ~Texture();
55 
60  SDL_Texture* getTexture();
61 
66  int getWidth();
67 
72  int getHeight();
73 
80  void pushToScreen(SDL_Renderer*, int, int);
81 
91  void pushToScreen(SDL_Renderer*, int, int, int, int);
92 
103  void pushSpriteToScreen(SDL_Renderer*, int, int, int, int, int, int);
104 
118  void pushSpriteToScreen(SDL_Renderer*, int, int, int, int, int, int, int, int);
119 };
void pushSpriteToScreen(SDL_Renderer *, int, int, int, int, int, int)
Definition: texture.cpp:154
SDL_Texture * textureData
Definition: texture.h:17
int textureHeight
Definition: texture.h:20
int getHeight()
Definition: texture.cpp:111
~Texture()
Definition: texture.cpp:84
void pushToScreen(SDL_Renderer *, int, int)
Definition: texture.cpp:120
Texture(SDL_Renderer *, int, int, int)
Definition: texture.cpp:6
Creates a Texture for use with a renderer Creates a Texture from an image file, this can then be used...
Definition: texture.h:13
SDL_Texture * getTexture()
Definition: texture.cpp:93
int getWidth()
Definition: texture.cpp:102
int textureWidth
Definition: texture.h:19