-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathEyeGame.h
47 lines (37 loc) · 1.09 KB
/
EyeGame.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// -*- c++ -*-
// Copyright 2009 Isis Innovation Limited
//
// EyeGame.h
// Declares the EyeGame class
// EyeGame is a trivial AR app which draws some 3D graphics
// Draws a bunch of 3d eyeballs remniscient of the
// AVL logo
//
#ifndef __EYEGAME_H
#define __EYEGAME_H
#include <TooN/TooN.h>
#include "OpenGL.h"
#include "Game.h"
namespace PTAMM {
using namespace TooN;
class EyeGame : public Game
{
public:
EyeGame( );
void Draw3D( const GLWindow2 &glWindow, Map &map, SE3<> se3CfromW );
void Reset();
void Init();
protected:
void DrawEye();
void LookAt(int nEye, Vector<3> v3, double dRotLimit);
void MakeShadowTex();
protected:
GLuint mnEyeDisplayList; // Display list for an eye
GLuint mnShadowTex; // Texture for the shadow
double mdEyeRadius; // The size of the eye
double mdShadowHalfSize; // The size of the shadow
SE3<> ase3WorldFromEye[4]; // The locations of the eyes
int mnFrameCounter; // A frame counter
};
}
#endif