58 #ifndef ACG_GLUTVIEWER_HH
59 #define ACG_GLUTVIEWER_HH
65 #include "../GL/gl.hh"
66 #include "../GL/GLState.hh"
68 #include "../Config/ACGDefines.hh"
90 GlutViewer(
const char* _title,
int _width,
int _height);
96 virtual void draw() = 0;
97 virtual void display(
void);
98 virtual void idle(
void);
99 virtual void keyboard(
int key,
int x,
int y);
100 virtual void motion(
int x,
int y);
101 virtual void mouse(
int button,
int state,
int x,
int y);
102 virtual void passivemotion(
int x,
int y);
103 virtual void reshape(
int w,
int h);
104 virtual void visibility(
int visible);
106 void update_projection();
110 GLfloat near_, far_, fovy_;
117 static void display__(
void);
118 static void idle__(
void);
119 static void keyboard__(
unsigned char key,
int x,
int y);
120 static void motion__(
int x,
int y);
121 static void mouse__(
int button,
int state,
int x,
int y);
122 static void passivemotion__(
int x,
int y);
123 static void reshape__(
int w,
int h);
124 static void special__(
int key,
int x,
int y);
125 static void visibility__(
int visible);
127 static std::map<int, GlutViewer*> windows__;
133 int bak_left_, bak_top_, bak_width_, bak_height_;
140 #endif // ACG_GLUTVIEWER_HH defined
Namespace providing different geometric functions concerning angles.