Jamie Slowgrove - PGG Assignment 1 - SDL
 All Classes Functions
texture.h
1 #pragma once
2 #ifndef TEXTURE_H
3 #define TEXTURE_H
4 
5 #include <SDL.h>
6 #include <string>
7 #include <iostream>
8 
13 class Texture
14 {
15 private:
17  SDL_Texture* textureData;
19  int textureWidth;
20  int textureHeight;
21 public:
30  Texture(std::string, SDL_Renderer*, bool);
31 
36  ~Texture();
37 
42  SDL_Texture* getTexture();
43 
48  int getWidth();
49 
54  int getHeight();
55 
62  void pushToScreen(SDL_Renderer*, int, int);
63 
73  void pushToScreen(SDL_Renderer*, int, int, int, int);
74 
85  void pushSpriteToScreen(SDL_Renderer*, int, int, int, int, int, int);
86 
100  void pushSpriteToScreen(SDL_Renderer*, int, int, int, int, int, int, int, int);
101 };
102 #endif
void pushSpriteToScreen(SDL_Renderer *, int, int, int, int, int, int)
Definition: texture.cpp:107
int getHeight()
Definition: texture.cpp:64
~Texture()
Definition: texture.cpp:37
void pushToScreen(SDL_Renderer *, int, int)
Definition: texture.cpp:73
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:46
int getWidth()
Definition: texture.cpp:55
Texture(std::string, SDL_Renderer *, bool)
Definition: texture.cpp:6