29 #ifndef __GLUTWINDOW_H__
30 #define __GLUTWINDOW_H__
56 Inst< SFInt32 > _height = 0,
57 Inst< SFBool > _fullscreen = 0,
58 Inst< SFBool > _mirrored = 0,
59 Inst< RenderMode > _renderMode = 0,
60 Inst< SFViewpoint > _viewpoint = 0,
61 Inst< SFInt32 > _posX = 0,
62 Inst< SFInt32 > _posY = 0,
63 Inst< SFBool > _manualCursorControl = 0,
64 Inst< SFString > _cursorType = 0,
65 Inst< SFString > _gameMode = 0 );
71 virtual void swapBuffers();
74 virtual void initWindow();
77 virtual void deinitWindow();
83 virtual void setFullscreen(
bool _fullscreen );
86 virtual void makeWindowActive();
90 static GLUTWindow * getGLUTWindow(
int glut_id );
98 static void glutKeyboardDownCallback(
unsigned char key,
102 static void glutSpecialDownCallback(
int key,
106 static void glutKeyboardUpCallback(
unsigned char key,
110 static void glutSpecialUpCallback(
int key,
115 static void glutMouseCallback(
int button,
int state,
119 static void glutMotionCallback(
int x,
int y );
124 static void glutMouseWheelCallback(
int wheel,
125 int direction,
int x,
int y );
129 static void glutWMCloseCallback();
132 static void initGLUT();
147 virtual int setCursorType(
const std::string & cursor_type );
158 virtual string getCursorForMode(
const string &mode );
160 static bool GLUT_init;
164 bool last_fullscreen;
165 int last_x_pos, last_y_pos, last_width, last_height;
Header file for H3DWindowNode.
H3DWindowNode implementet using GLUT.
Definition: GLUTWindow.h:51
virtual void initWindowHandler()
Initializes GLUT.
Definition: GLUTWindow.h:80
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: GLUTWindow.h:143
int getGLUTWindowId()
Returns the GLUT window id for this window.
Definition: GLUTWindow.h:93
H3DUniquePtr< SFString > gameMode
Support for GLUT GameMode which is basically a string used to optimize the glut window for gaming.
Definition: GLUTWindow.h:140
The base class for all window nodes.
Definition: H3DWindowNode.h:57
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194