glut_helper.hpp

Go to the documentation of this file.
00001 /*
00002 **    3ETI Projet CPE Lyon
00003 **    Copyright (C) 2011 Damien Rohmer
00004 **
00005 **    This program is free software: you can redistribute it and/or modify
00006 **    it under the terms of the GNU General Public License as published by
00007 **    the Free Software Foundation, either version 3 of the License, or
00008 **    (at your option) any later version.
00009 **
00010 **   This program is distributed in the hope that it will be useful,
00011 **    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 **    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 **    GNU General Public License for more details.
00014 **
00015 **    You should have received a copy of the GNU General Public License
00016 **    along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 */
00018 
00019 
00020 #ifndef _GLUT_HELPER_HPP_
00021 #define _GLUT_HELPER_HPP_
00022 
00023 #include <navigator_tool.hpp>
00024 
00025 //init opengl and glut
00026 void setup_opengl(int argc,char *argv[],const cpe::navigator_tool& navigator);
00027 //keyboard callback
00028 void keyboard_manager(unsigned char key,int x,int y,cpe::navigator_tool& navigator);
00029 //mouse motion callback
00030 void motion_manager(int x, int y,cpe::navigator_tool& navigator);
00031 //mouse click callback
00032 void mouse_manager(int button,int action,int x,int y,cpe::navigator_tool& nav);
00033 //window reshape callback
00034 void reshape_manager(int width,int height,cpe::navigator_tool& navigator);
00035 //main display callback (begin)
00036 void display_manager_begin(cpe::navigator_tool& navigator);
00037 //main display callback (end)
00038 void display_manager_end(cpe::navigator_tool& navigator,unsigned int& counter);
00039 
00040 //draw central pointer
00041 void draw_pointer(cpe::navigator_tool& navigator);
00042 //printf fps on screen
00043 void draw_fps(cpe::navigator_tool& navigator);
00044 //draw orientation axes
00045 void draw_orientation(cpe::navigator_tool& navigator);
00046 //print some help at begining
00047 void print_help_start();
00048 
00049 #endif
Generated on Fri Apr 1 17:22:40 2011 by  doxygen 1.6.3