#include <freecloth/gfx/gfxGLWindowGLUT.h>
Inheritance diagram for GfxGLWindowGLUT:
Public Types | |
typedef GfxGLWindow | BaseClass |
Public Member Functions | |
GfxGLWindowGLUT (const GfxConfig &, const String &title) | |
void | enableIdleEvents (bool) |
void | close () |
void | eventLoop () |
Run events, forever. | |
void | handleEvents () |
Can't be implemented using GLUT... | |
UInt32 | getWidth () const |
UInt32 | getHeight () const |
void | swapBuffers () |
void | postRedisplay () |
Protected Member Functions | |
virtual void | registerIdleCB () |
Virtual, to allow GLUI to override. | |
virtual void | unregisterIdleCB () |
virtual void | registerCBs () |
virtual void | closeReceived () |
See base. | |
void | handleMiscEvents () |
Static Protected Member Functions | |
KeyID | translateKey (unsigned char key) |
ModBitfield | getModifiers () |
ButtonID | translateButton (Int32 button) |
GfxGLWindowGLUT & | getWindow () |
Retrieve the current GLUT window. | |
void | idleCB () |
Protected, to allow GLUI to access it. | |
void | displayCB () |
void | keyboardCB (unsigned char key, int x, int y) |
void | mouseCB (int button, int state, int x, int y) |
void | motionCB (int x, int y) |
void | passiveMotionCB (int x, int y) |
void | specialCB (int key, int x, int y) |
void | reshapeCB (int w, int h) |
Protected Attributes | |
Int32 | _windowId |
bool | _idleEvents |
Private Types | |
typedef std::map< Int32, GfxGLWindowGLUT * > | WindowMap |
Private Member Functions | |
GfxGLWindowGLUT (const GfxGLWindowGLUT &) | |
Disallowed. | |
GfxGLWindowGLUT & | operator= (const GfxGLWindowGLUT &) |
Disallowed. | |
Private Attributes | |
bool | _closeReceived |
UInt32 | _width |
UInt32 | _height |
Static Private Attributes | |
WindowMap | _windowMap |
Map from window ids to GfxGLWindowGLUT pointers. | |
UInt32 | _nbIdleRegistered = 0 |
Definition at line 45 of file gfxGLWindowGLUT.h.
|
GLUT doesn't support some important useful events, such as closing a window. This allows us to handle these events. Definition at line 290 of file gfxGLWindowGLUT.cpp. References closeReceived(). |