Platformer
Platformer
SDLTextureWrapper.hpp
1 #ifndef SDL_TEXTURE_WRAPPER_HPP
2 #define SDL_TEXTURE_WRAPPER_HPP
3 
4 #include <SDL2/SDL.h>
5 
10  public:
11 
14  SDL_Texture* tex);
15 
18 
23  SDL_Texture* GetTex() const;
24 
25  private:
26 
28  SDL_Texture* tex_;
29 };
30 
31 #endif
SDLTextureWrapper(SDL_Texture *tex)
Constructs an ~SDLTextureWrapper.
Definition: SDLTextureWrapper.cpp:3
SDL_Texture * tex_
The wrapped SDL_Texture.
Definition: SDLTextureWrapper.hpp:28
A wrapper class for SDL_Textures.
Definition: SDLTextureWrapper.hpp:9
SDL_Texture * GetTex() const
Gets the SDL_Texture of this wrapper.
Definition: SDLTextureWrapper.cpp:7
~SDLTextureWrapper()
Destructs an ~SDLTextureWrapper.
Definition: SDLTextureWrapper.cpp:5