33 #ifndef DART_GUI_GLUT_WINDOW_HPP_
34 #define DART_GUI_GLUT_WINDOW_HPP_
53 virtual void initWindow(
int _w,
int _h,
const char* _name);
56 static void reshape(
int _w,
int _h);
57 static void keyEvent(
unsigned char _key,
int _x,
int _y);
59 static void mouseClick(
int _button,
int _state,
int _x,
int _y);
72 virtual void resize(
int _w,
int _h) = 0;
74 virtual void keyboard(
unsigned char _key,
int _x,
int _y);
75 virtual void specKey(
int _key,
int _x,
int _y);
76 virtual void click(
int _button,
int _state,
int _x,
int _y);
77 virtual void drag(
int _x,
int _y);
78 virtual void move(
int _x,
int _y);
Definition: RenderInterface.hpp:71
Definition: Window.hpp:47
virtual void move(int _x, int _y)
Definition: GlutWindow.cpp:287
static void refresh()
Definition: GlutWindow.cpp:153
std::vector< unsigned char > mScreenshotTemp2
Definition: Window.hpp:95
static void mouseClick(int _button, int _state, int _x, int _y)
Definition: GlutWindow.cpp:138
std::vector< unsigned char > mScreenshotTemp
Definition: Window.hpp:94
gui::RenderInterface * mRI
Definition: Window.hpp:93
virtual ~Window()
Definition: GlutWindow.cpp:79
virtual void resize(int _w, int _h)=0
static void specKeyEvent(int _key, int _x, int _y)
Definition: GlutWindow.cpp:133
static void keyEvent(unsigned char _key, int _x, int _y)
Definition: GlutWindow.cpp:128
virtual void specKey(int _key, int _x, int _y)
Definition: GlutWindow.cpp:275
virtual bool screenshot()
Definition: GlutWindow.cpp:178
static std::vector< Window * > mWindows
Definition: Window.hpp:67
static Window * current()
Definition: GlutWindow.cpp:256
int mMouseY
Definition: Window.hpp:87
static void runTimer(int _val)
Definition: GlutWindow.cpp:173
int mMouseX
Definition: Window.hpp:86
static void mouseDrag(int _x, int _y)
Definition: GlutWindow.cpp:143
virtual void drag(int _x, int _y)
Definition: GlutWindow.cpp:283
static void refreshTimer(int _val)
Definition: GlutWindow.cpp:158
int mWinWidth
Definition: Window.hpp:84
static void reshape(int _w, int _h)
Definition: GlutWindow.cpp:121
virtual void displayTimer(int _val)
Definition: GlutWindow.cpp:163
virtual void click(int _button, int _state, int _x, int _y)
Definition: GlutWindow.cpp:279
int mWinHeight
Definition: Window.hpp:85
virtual void initWindow(int _w, int _h, const char *_name)
Definition: GlutWindow.cpp:84
Window()
Definition: GlutWindow.cpp:62
double mBackground[4]
Definition: Window.hpp:92
static std::vector< int > mWinIDs
Definition: Window.hpp:68
virtual void keyboard(unsigned char _key, int _x, int _y)
Definition: GlutWindow.cpp:270
double mDisplayTimeout
Definition: Window.hpp:88
bool mMouseDrag
Definition: Window.hpp:90
virtual void simTimer(int _val)
Definition: GlutWindow.cpp:169
bool mCapture
Definition: Window.hpp:91
bool mMouseDown
Definition: Window.hpp:89
static void mouseMove(int _x, int _y)
Definition: GlutWindow.cpp:148
Definition: BulletCollisionDetector.cpp:65