1
0
Fork 0
flightgear/src/GUI/sgVec3Slider.hxx

68 lines
1.1 KiB
C++
Raw Normal View History

#ifndef _VEC3_SLIDER_H
#define _VEC3_SLIDER_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <simgear/compiler.h>
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#include <stdio.h>
#include "gui.h"
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
2002-02-05 23:02:16 +00:00
/* binding functions for chase view offset */
static void
setPilotXOffset (float value)
2002-02-05 23:02:16 +00:00
{
PilotOffsetSet(0, value);
}
static float
getPilotXOffset ()
2002-02-05 23:02:16 +00:00
{
return( PilotOffsetGetSetting(0) );
}
static void
setPilotYOffset (float value)
2002-02-05 23:02:16 +00:00
{
PilotOffsetSet(1, value);
}
static float
getPilotYOffset ()
2002-02-05 23:02:16 +00:00
{
return( PilotOffsetGetSetting(1) );
}
static void
setPilotZOffset (float value)
2002-02-05 23:02:16 +00:00
{
PilotOffsetSet(2, value);
}
static float
getPilotZOffset ()
2002-02-05 23:02:16 +00:00
{
return( PilotOffsetGetSetting(2) );
}