Main Page   Class Hierarchy   Compound List   File List   Compound Members  

GfxGLWindowGLUT Class Reference

Window class for GLUT. More...

#include <freecloth/gfx/gfxGLWindowGLUT.h>

Inheritance diagram for GfxGLWindowGLUT:

Inheritance graph
[legend]
Collaboration diagram for GfxGLWindowGLUT:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Window class for GLUT.

Definition at line 45 of file gfxGLWindowGLUT.h.


Member Function Documentation

void GfxGLWindowGLUT::handleMiscEvents   [protected]
 

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().


The documentation for this class was generated from the following files:
Generated on Wed Apr 23 15:58:58 2003 for Freecloth by doxygen1.3-rc3