Subversion Repositories gelsvn

Rev

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

Rev 67 Rev 94
Line 1... Line 1...
1
#include <fstream>
1
#include <fstream>
2
#include "TrackBall.h"
2
#include "QuatTrackBall.h"
3
 
3
 
4
namespace Graphics
4
namespace Graphics
5
{
5
{
6
 
6
 
7
	class GLViewController
7
	class GLViewController
Line 16... Line 16...
16
		bool button_down;
16
		bool button_down;
17
		TrackBallAction last_action;
17
		TrackBallAction last_action;
18
		CGLA::Vec2i old_pos;
18
		CGLA::Vec2i old_pos;
19
		bool spin;
19
		bool spin;
20
 
20
 
21
		TrackBall *ball;
21
		QuatTrackBall *ball;
22
	public:
22
	public:
23
 
23
 
24
		GLViewController(int _WINX, int _WINY,
24
		GLViewController(int _WINX, int _WINY,
25
										 const CGLA::Vec3f& _centre, float _rad);
25
										 const CGLA::Vec3f& _centre, float _rad);
26
		void grab_ball(TrackBallAction action, const CGLA::Vec2i& pos);
26
		void grab_ball(TrackBallAction action, const CGLA::Vec2i& pos);