blob: d5affe8b0e8ebea90349495c958a0ca6677457cd [file] [log] [blame] [edit]
#include "graphics_state.h"
#ifdef X11
t_x11_state *t_x11_state::instance = nullptr;
t_x11_state::t_x11_state()
{
instance = this;
}
t_x11_state::~t_x11_state()
{
instance = nullptr;
}
t_x11_state *t_x11_state::getInstance()
{
return instance;
}
#endif // X11
#ifdef WIN32
t_win32_state *t_win32_state::instance = NULL;
t_win32_state::t_win32_state()
{
instance = this;
}
t_win32_state::t_win32_state(bool _InEventLoop, t_window_button_state _windowAdjustFlag, int _adjustButton)
{
InEventLoop = _InEventLoop;
windowAdjustFlag = _windowAdjustFlag;
adjustButton = _adjustButton;
}
t_win32_state::~t_win32_state()
{
instance = NULL;
}
t_win32_state *t_win32_state::getInstance()
{
return instance;
}
#endif // WIN32