]> git.mxchange.org Git - flightgear.git/blob - src/GUI/sgVec3Slider.hxx
Bernie Bright:
[flightgear.git] / src / GUI / sgVec3Slider.hxx
1 #ifndef _VEC3_SLIDER_H
2 #define  _VEC3_SLIDER_H
3
4 #ifdef HAVE_CONFIG_H
5 #include <config.h>
6 #endif
7
8 #include <simgear/compiler.h>
9
10 #ifdef HAVE_WINDOWS_H
11 #include <windows.h>
12 #endif
13
14 #include <stdio.h>
15 #include "gui.h"
16
17 void PilotOffsetInit();
18 void PilotOffsetInit( sgVec3 vec );
19 void PilotOffsetAdjust( puObject * );
20 void Vec3FromHeadingPitchRadius( sgVec3 vec3, float heading, float pitch, float radius );
21 void HeadingPitchRadiusFromVec3( sgVec3 hpr, sgVec3 vec3 );
22 //void PilotOffsetGet( float *po );
23 sgVec3 *PilotOffsetGet();
24 void PilotOffsetSet( int opt, float setting);
25 float PilotOffsetGetSetting( int opt );
26
27 #endif // _VEC3_SLIDER_H
28
29 /* binding functions for chase view offset */
30
31 static void
32 setPilotXOffset (float value)
33 {
34         PilotOffsetSet(0, value);
35 }
36
37 static float
38 getPilotXOffset ()
39 {
40         return( PilotOffsetGetSetting(0) );
41 }
42
43
44 static void
45 setPilotYOffset (float value)
46 {
47         PilotOffsetSet(1, value);
48 }
49
50 static float
51 getPilotYOffset ()
52 {
53         return( PilotOffsetGetSetting(1) );
54 }
55
56
57 static void
58 setPilotZOffset (float value)
59 {
60         PilotOffsetSet(2, value);
61 }
62
63 static float
64 getPilotZOffset ()
65 {
66         return( PilotOffsetGetSetting(2) );
67 }