Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
TrackIR.h
Go to the documentation of this file.
1
/* Project Starshatter 4.6
2
Destroyer Studios LLC
3
Copyright © 1997-2006. All Rights Reserved.
4
5
SUBSYSTEM: Stars.exe
6
FILE: TrackIR.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
TrackIR head tracker interface class
13
*/
14
15
#ifndef TrackIR_h
16
#define TrackIR_h
17
18
#include "
Types.h
"
19
20
// +--------------------------------------------------------------------+
21
22
class
TrackIR
23
{
24
public
:
25
TrackIR
();
26
~TrackIR
();
27
28
DWORD
ExecFrame
();
29
30
bool
IsRunning
()
const
{
return
running
; }
31
double
GetAzimuth
()
const
{
return
az
; }
32
double
GetElevation
()
const
{
return
el
; }
33
34
double
GetX
()
const
{
return
x
; }
35
double
GetY
()
const
{
return
y
; }
36
double
GetZ
()
const
{
return
z
; }
37
38
protected
:
39
40
bool
running
;
41
DWORD
stale_frames
;
42
DWORD
frame_signature
;
43
44
double
az
;
45
double
el
;
46
47
double
x
;
// vrt
48
double
y
;
// vup
49
double
z
;
// vpn (i think)
50
};
51
52
#endif TrackIR_h
53
Stars45
TrackIR.h
Generated on Tue Jun 5 2012 20:47:16 for Starshatter_Open by
1.8.1