Subversion Repositories gelsvn

Rev

Rev 87 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 87 Rev 89
Line 2... Line 2...
2
#define __SIMPLETRACKBALL_H__
2
#define __SIMPLETRACKBALL_H__
3
 
3
 
4
#include "CGLA/CGLA.h"
4
#include "CGLA/CGLA.h"
5
#include "CGLA/Vec3f.h"
5
#include "CGLA/Vec3f.h"
6
 
6
 
-
 
7
 
7
namespace Graphics
8
namespace Graphics
8
{
9
{
9
 
10
 
10
/** Simple trackball class. Use it to let the mouse movement control
11
/** \brief Simple trackball class. 
-
 
12
 
11
		the viewing transformation. 
13
    Use it to let the mouse movement control the viewing transformation. 
12
 
14
 
13
		Typical usage:
15
		Typical usage:
14
		Construct the trackball as a global variable. Call the roll function
16
		Construct the trackball as a global variable. Call the roll function
15
		from the GLUT mouse motion callback. Setup an idle callback which only
17
		from the GLUT mouse motion callback. Setup an idle callback which only
16
		calls glutPostRedisplay and call gl_view from the display function to
18
		calls glutPostRedisplay and call gl_view from the display function to