Skip to content

Instantly share code, notes, and snippets.

@danirod
Created September 24, 2013 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danirod/6691986 to your computer and use it in GitHub Desktop.
Save danirod/6691986 to your computer and use it in GitHub Desktop.
imagen.h
#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