mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-23 22:55:39 +00:00
23 lines
356 B
C
23 lines
356 B
C
|
#ifndef _GUIIMAGE_H_
|
||
|
#define _GUIIMAGE_H_
|
||
|
|
||
|
#include "../GuiComponent.h"
|
||
|
#include <SDL/SDL.h>
|
||
|
#include <string>
|
||
|
|
||
|
class GuiImage : public GuiComponent
|
||
|
{
|
||
|
public:
|
||
|
GuiImage(int offsetX = 0, int offsetY = 0, std::string path = "");
|
||
|
~GuiImage();
|
||
|
|
||
|
void setImage(std::string path);
|
||
|
|
||
|
void onRender();
|
||
|
private:
|
||
|
SDL_Surface* mSurface;
|
||
|
SDL_Rect mRect;
|
||
|
};
|
||
|
|
||
|
#endif
|