Caseus Tower
 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 
12 class Texture
13 {
14 private:
16  SDL_Texture* textureData;
20 public:
29  Texture(SDL_Renderer*, int, int, int);
30 
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)
SDL_Texture * textureData
Definition: texture.h:16
int textureHeight
Definition: texture.h:19
int getHeight()
void pushToScreen(SDL_Renderer *, int, int)
SDL_Texture * getTexture()
Texture(SDL_Renderer *, int, int, int)
Creates a Texture for use with a renderer Creates a Texture from an image file, this can then be used...
Definition: texture.h:12
int getWidth()
int textureWidth
Definition: texture.h:18