Created
September 24, 2013 22:07
-
-
Save danirod/6691986 to your computer and use it in GitHub Desktop.
imagen.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _IMAGEN_H_ | |
#define _IMAGEN_H_ | |
#include <SDL2/SDL.h> | |
class Imagen | |
{ | |
public: | |
Imagen(SDL_Renderer* renderer, const char* ruta); | |
~Imagen(); | |
void Render(int x, int y); | |
private: | |
SDL_Texture* m_textura; | |
SDL_Renderer* m_renderer; | |
SDL_Rect m_posicion; | |
}; | |
#endif // IMAGEN_H_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment