GlutWindow Class Reference

#include <GlutWindow.h>

List of all members.

Public Member Functions

 GlutWindow (const GWindow::Settings &s)
virtual ~GlutWindow ()
virtual void getSettings (GWindow::Settings &settings) const
virtual int width () const
virtual int height () const
virtual Rect2D dimensions () const
virtual void setDimensions (const Rect2D &dims)
virtual void setPosition (int x, int y)
virtual bool hasFocus () const
virtual std::string getAPIVersion () const
virtual std::string getAPIName () const
virtual void setGammaRamp (const Array< uint16 > &gammaRamp)
virtual void setCaption (const std::string &caption)
virtual int numJoysticks () const
virtual std::string joystickName (unsigned int sticknum)
virtual std::string caption ()
virtual void setIcon (const GImage &image)
virtual void swapGLBuffers ()
virtual void notifyResize (int w, int h)
virtual bool pollEvent (GEvent &e)
virtual bool requiresMainLoop () const
virtual void runMainLoop ()
virtual void setRelativeMousePosition (double x, double y)
virtual void setRelativeMousePosition (const Vector2 &p)
virtual void getRelativeMouseState (Vector2 &position, uint8 &mouseButtons) const
virtual void getRelativeMouseState (int &x, int &y, uint8 &mouseButtons) const
virtual void getRelativeMouseState (double &x, double &y, uint8 &mouseButtons) const
virtual void getJoystickState (unsigned int stickNum, Array< float > &axis, Array< bool > &button)
virtual void setInputCapture (bool c)
virtual bool inputCapture () const
virtual bool mouseVisible () const
virtual void setMouseVisible (bool v)
virtual void incMouseHideCount ()
virtual void decMouseHideCount ()
virtual void getDroppedFilenames (G3D::Array< std::string > &)

Detailed Description

GWindow that uses the glut API

Not supported by GlutWindow:

Additionally, Glut does not support all keystrokes (e.g. the key-down event for a modifier cannot be detected, scan-codes are not available) so GlutWindow fails to report some keyboard events.

Glut by Mark Kilgard, ported to Windows by Nate Robbins

Constructor & Destructor Documentation

GlutWindow::GlutWindow ( const GWindow::Settings &  s  ) 

virtual GlutWindow::~GlutWindow (  )  [virtual]

Member Function Documentation

virtual void GlutWindow::getSettings ( GWindow::Settings &  settings  )  const [virtual]

virtual int GlutWindow::width (  )  const [virtual]

virtual int GlutWindow::height (  )  const [virtual]

virtual Rect2D GlutWindow::dimensions (  )  const [virtual]

virtual void GlutWindow::setDimensions ( const Rect2D &  dims  )  [virtual]

virtual void GlutWindow::setPosition ( int  x,
int  y 
) [virtual]

virtual bool GlutWindow::hasFocus (  )  const [virtual]

virtual std::string GlutWindow::getAPIVersion (  )  const [virtual]

virtual std::string GlutWindow::getAPIName (  )  const [virtual]

virtual void GlutWindow::setGammaRamp ( const Array< uint16 > &  gammaRamp  )  [virtual]

virtual void GlutWindow::setCaption ( const std::string &  caption  )  [virtual]

virtual int GlutWindow::numJoysticks (  )  const [virtual]

virtual std::string GlutWindow::joystickName ( unsigned int  sticknum  )  [virtual]

virtual std::string GlutWindow::caption (  )  [virtual]

virtual void GlutWindow::setIcon ( const GImage &  image  )  [virtual]

virtual void GlutWindow::swapGLBuffers (  )  [virtual]

virtual void GlutWindow::notifyResize ( int  w,
int  h 
) [virtual]

virtual bool GlutWindow::pollEvent ( GEvent &  e  )  [virtual]

virtual bool GlutWindow::requiresMainLoop (  )  const [inline, virtual]

virtual void GlutWindow::runMainLoop (  )  [virtual]

virtual void GlutWindow::setRelativeMousePosition ( double  x,
double  y 
) [virtual]

virtual void GlutWindow::setRelativeMousePosition ( const Vector2 &  p  )  [virtual]

virtual void GlutWindow::getRelativeMouseState ( Vector2 &  position,
uint8 &  mouseButtons 
) const [virtual]

virtual void GlutWindow::getRelativeMouseState ( int &  x,
int &  y,
uint8 &  mouseButtons 
) const [virtual]

virtual void GlutWindow::getRelativeMouseState ( double &  x,
double &  y,
uint8 &  mouseButtons 
) const [virtual]

virtual void GlutWindow::getJoystickState ( unsigned int  stickNum,
Array< float > &  axis,
Array< bool > &  button 
) [virtual]

virtual void GlutWindow::setInputCapture ( bool  c  )  [virtual]

virtual bool GlutWindow::inputCapture (  )  const [virtual]

virtual bool GlutWindow::mouseVisible (  )  const [virtual]

virtual void GlutWindow::setMouseVisible ( bool  v  )  [virtual]

virtual void GlutWindow::incMouseHideCount (  )  [virtual]

virtual void GlutWindow::decMouseHideCount (  )  [virtual]

virtual void GlutWindow::getDroppedFilenames ( G3D::Array< std::string > &   )  [virtual]

The documentation for this class was generated from the following file:

Generated on Wed Jan 26 06:35:59 2011 for VRG3D by  doxygen 1.5.6