33 #ifndef DART_GUI_GLUT_WINDOW_HPP_
34 #define DART_GUI_GLUT_WINDOW_HPP_
52 virtual void initWindow(
int _w,
int _h,
const char* _name);
55 static void reshape(
int _w,
int _h);
56 static void keyEvent(
unsigned char _key,
int _x,
int _y);
58 static void mouseClick(
int _button,
int _state,
int _x,
int _y);
71 virtual void resize(
int _w,
int _h) = 0;
73 virtual void keyboard(
unsigned char _key,
int _x,
int _y);
74 virtual void specKey(
int _key,
int _x,
int _y);
75 virtual void click(
int _button,
int _state,
int _x,
int _y);
76 virtual void drag(
int _x,
int _y);
77 virtual void move(
int _x,
int _y);
Definition: RenderInterface.hpp:67
Definition: Window.hpp:46
virtual void move(int _x, int _y)
Definition: GlutWindow.cpp:246
static void refresh()
Definition: GlutWindow.cpp:143
std::vector< unsigned char > mScreenshotTemp2
Definition: Window.hpp:94
static void mouseClick(int _button, int _state, int _x, int _y)
Definition: GlutWindow.cpp:131
std::vector< unsigned char > mScreenshotTemp
Definition: Window.hpp:93
gui::RenderInterface * mRI
Definition: Window.hpp:92
virtual ~Window()
Definition: GlutWindow.cpp:78
virtual void resize(int _w, int _h)=0
static void specKeyEvent(int _key, int _x, int _y)
Definition: GlutWindow.cpp:127
static void keyEvent(unsigned char _key, int _x, int _y)
Definition: GlutWindow.cpp:123
virtual void specKey(int _key, int _x, int _y)
Definition: GlutWindow.cpp:237
virtual bool screenshot()
Definition: GlutWindow.cpp:163
static std::vector< Window * > mWindows
Definition: Window.hpp:66
static Window * current()
Definition: GlutWindow.cpp:222
int mMouseY
Definition: Window.hpp:86
static void runTimer(int _val)
Definition: GlutWindow.cpp:159
int mMouseX
Definition: Window.hpp:85
static void mouseDrag(int _x, int _y)
Definition: GlutWindow.cpp:135
virtual void drag(int _x, int _y)
Definition: GlutWindow.cpp:243
static void refreshTimer(int _val)
Definition: GlutWindow.cpp:147
int mWinWidth
Definition: Window.hpp:83
static void reshape(int _w, int _h)
Definition: GlutWindow.cpp:117
virtual void displayTimer(int _val)
Definition: GlutWindow.cpp:151
virtual void click(int _button, int _state, int _x, int _y)
Definition: GlutWindow.cpp:240
int mWinHeight
Definition: Window.hpp:84
virtual void initWindow(int _w, int _h, const char *_name)
Definition: GlutWindow.cpp:82
Window()
Definition: GlutWindow.cpp:62
double mBackground[4]
Definition: Window.hpp:91
static std::vector< int > mWinIDs
Definition: Window.hpp:67
virtual void keyboard(unsigned char _key, int _x, int _y)
Definition: GlutWindow.cpp:233
double mDisplayTimeout
Definition: Window.hpp:87
bool mMouseDrag
Definition: Window.hpp:89
virtual void simTimer(int _val)
Definition: GlutWindow.cpp:156
bool mCapture
Definition: Window.hpp:90
bool mMouseDown
Definition: Window.hpp:88
static void mouseMove(int _x, int _y)
Definition: GlutWindow.cpp:139
Definition: BulletCollisionDetector.cpp:63