00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00028 #ifndef _NAVIGATION_H
00029 #define _NAVIGATION_H
00030
00031
00033 #include <sstream>
00034 #include <string.h>
00035
00036 #ifdef WIN32
00037 #include <string.h>
00038 #else
00039 #include <strings.h>
00040 #endif
00041
00042
00043
00044 #include <GLUT/glut.h>
00045
00046
00047
00048
00050 #include "trackball.h"
00051
00052
00053 extern float scale_factor;
00054 extern GLint xGL, yGL;
00055
00056
00057 typedef enum {
00058 SHADING_WIRED,
00059 SHADING_SMOOTH,
00060 SHADING_NO_SMOOTH
00061 } eShading;
00062
00063 extern eShading shadingMode;
00064
00065 extern bool normalDisplaying;
00066
00067
00068
00069
00073 void reshape(int width, int height) ;
00074
00078 void motion(int x, int y) ;
00079
00080
00084 void mouse(int button, int state, int x, int y) ;
00085
00086
00090 void keyboard(unsigned char key, int x, int y) ;
00091
00092
00096 void menu(int item) ;
00097
00098
00102 void idle(void) ;
00103
00104
00108 void visible(int state) ;
00109
00110
00111
00112 #endif