You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#ifndef __GUI_SDL_HEADER__
#define __GUI_SDL_HEADER__
#include <stdio.h>
#include <vector>
#include "../components/base/basicMutex.h"
#include "../components/base/basicThread.h"
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 600
class sdlCoreWidget;
typedef std::vector<sdlCoreWidget*> pWidgetVector;
class classGUI_SDL: public basicThread{ private: bool m_bInitOk; bool m_bWindowSystemOk; SDL_Window * m_pWindow; SDL_Renderer * m_pRenderer; SDL_Surface * m_pScreenSurface; SDL_Texture * m_pTexture; //basicMutex m_mProtector;
SDL_mutex * m_pProtector; pWidgetVector m_vWidgets; public: static classGUI_SDL * getInstance(); virtual void m_fThreadProc(void); void registerWidget(sdlCoreWidget * tPtr); void removeWidget( sdlCoreWidget * tPtr); bool setFullScreen( bool status ); protected: classGUI_SDL(); ~classGUI_SDL(); static classGUI_SDL * m_pInstance;};
#endif
|