Navigation.h

Aller à la documentation de ce fichier.
00001 /*
00002  * Navigation.h : 
00003  * Copyright (C) 2007 Sylvain Brandel, LIRIS
00004  *               sylvain.brandel@liris.univ-lyon1.fr
00005  *               http://liris.cnrs.fr/sylvain.brandel
00006  *
00007  *
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU Lesser General Public License as published
00010  * by the Free Software Foundation; either version 2.1 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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 /* Sous MAC */
00044 #include <GLUT/glut.h>  
00045 
00046 /* Sous Linux */
00047 // #include <GL/glut.h>   
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

Généré le Thu Jan 24 19:11:42 2008 pour Animation 3D par  doxygen 1.5.1