]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/sgVec3Slider.hxx
Bernie Bright:
[flightgear.git] / src / GUI / sgVec3Slider.hxx
index 0d694a2e2a45261d48d5d9b45b74ab42471c535c..8772dc6ccd312d537b57d118559e4680c82b3c77 100644 (file)
@@ -18,9 +18,50 @@ void PilotOffsetInit();
 void PilotOffsetInit( sgVec3 vec );
 void PilotOffsetAdjust( puObject * );
 void Vec3FromHeadingPitchRadius( sgVec3 vec3, float heading, float pitch, float radius );
+void HeadingPitchRadiusFromVec3( sgVec3 hpr, sgVec3 vec3 );
 //void PilotOffsetGet( float *po );
 sgVec3 *PilotOffsetGet();
 void PilotOffsetSet( int opt, float setting);
 float PilotOffsetGetSetting( int opt );
 
 #endif // _VEC3_SLIDER_H
+
+/* binding functions for chase view offset */
+
+static void
+setPilotXOffset (float value)
+{
+       PilotOffsetSet(0, value);
+}
+
+static float
+getPilotXOffset ()
+{
+       return( PilotOffsetGetSetting(0) );
+}
+
+
+static void
+setPilotYOffset (float value)
+{
+       PilotOffsetSet(1, value);
+}
+
+static float
+getPilotYOffset ()
+{
+       return( PilotOffsetGetSetting(1) );
+}
+
+
+static void
+setPilotZOffset (float value)
+{
+       PilotOffsetSet(2, value);
+}
+
+static float
+getPilotZOffset ()
+{
+       return( PilotOffsetGetSetting(2) );
+}