H3D::GLUTWindow Class Reference
[Scene-graph nodes.]

H3DWindowNode implementet using GLUT. More...

#include <H3D/GLUTWindow.h>

Inheritance diagram for H3D::GLUTWindow:

Inheritance graph

List of all members.

Public Member Functions

 GLUTWindow (Inst< SFInt32 > _width=0, Inst< SFInt32 > _height=0, Inst< SFBool > _fullscreen=0, Inst< SFBool > _mirrored=0, Inst< RenderMode > _renderMode=0, Inst< SFViewpoint > _viewpoint=0, Inst< SFTime > _time=0)
 Constructor.
 ~GLUTWindow ()
 Destructor.
virtual void swapBuffers ()
 Calls glutSwapBuffers.
virtual void initWindow ()
 Creates and initializes a GLUT window/.
virtual void initWindowHandler ()
 Initializes GLUT.
virtual void setFullscreen (bool fullscreen)
 Sets fullscreen mode.
virtual void makeWindowActive ()
 Make this the current window.
int getGLUTWindowId ()
 Returns the GLUT window id for this window.

Static Public Member Functions

static GLUTWindowgetGLUTWindow (int glut_id)
 Given the identifier of a GLUT window the GLWindow instance that created that window is returned.
static void glutKeyboardDownCallback (unsigned char key, int x, int y)
 GLUT callback function for glutKeyboardFunc.
static void glutSpecialDownCallback (int key, int x, int y)
 GLUT callback function for glutSpecialFunc.
static void glutKeyboardUpCallback (unsigned char key, int x, int y)
 GLUT callback function for glutKeyboardUpFunc.
static void glutSpecialUpCallback (int key, int x, int y)
 GLUT callback function for glutSpecialUpFunc.
static void glutMouseCallback (int button, int state, int x, int y)
 glut callback function.
static void glutMotionCallback (int x, int y)
 glut callback function. Calls onMouseMotionAction
static void initGLUT ()
 Initialize GLUT.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

H3DWindowNode implementet using GLUT.

Member Function Documentation

GLUTWindow * GLUTWindow::getGLUTWindow ( int  glut_id  )  [static]

Given the identifier of a GLUT window the GLWindow instance that created that window is returned.

References getGLUTWindowId().

Referenced by glutKeyboardDownCallback(), glutKeyboardUpCallback(), glutMotionCallback(), glutMouseCallback(), glutSpecialDownCallback(), and glutSpecialUpCallback().

void GLUTWindow::glutMouseCallback ( int  button,
int  state,
int  x,
int  y 
) [static]

glut callback function.

Calls onMouseButtonAction with the button and state translated to the enumerated values in KeySensor.h

References getGLUTWindow(), and H3D::H3DWindowNode::onMouseButtonAction().

Referenced by initWindow().


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

Generated on Fri Nov 7 10:30:12 2008 for H3D API by  doxygen 1.5.7