2001-01-29 05:08:00 +00:00
|
|
|
#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"
|
|
|
|
|
2001-07-13 16:50:35 +00:00
|
|
|
void PilotOffsetInit();
|
2001-01-29 05:08:00 +00:00
|
|
|
void PilotOffsetInit( sgVec3 vec );
|
|
|
|
void PilotOffsetAdjust( puObject * );
|
2001-07-13 16:50:35 +00:00
|
|
|
void Vec3FromHeadingPitchRadius( sgVec3 vec3, float heading, float pitch, float radius );
|
2002-04-18 16:51:47 +00:00
|
|
|
void HeadingPitchRadiusFromVec3( sgVec3 hpr, sgVec3 vec3 );
|
2001-01-29 05:08:00 +00:00
|
|
|
//void PilotOffsetGet( float *po );
|
|
|
|
sgVec3 *PilotOffsetGet();
|
2001-11-12 20:57:08 +00:00
|
|
|
void PilotOffsetSet( int opt, float setting);
|
|
|
|
float PilotOffsetGetSetting( int opt );
|
2001-07-13 16:50:35 +00:00
|
|
|
|
2001-01-29 05:08:00 +00:00
|
|
|
#endif // _VEC3_SLIDER_H
|
2002-02-05 23:02:16 +00:00
|
|
|
|
|
|
|
/* binding functions for chase view offset */
|
|
|
|
|
|
|
|
static void
|
2002-04-18 16:51:47 +00:00
|
|
|
setPilotXOffset (float value)
|
2002-02-05 23:02:16 +00:00
|
|
|
{
|
|
|
|
PilotOffsetSet(0, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
static float
|
2002-04-18 16:51:47 +00:00
|
|
|
getPilotXOffset ()
|
2002-02-05 23:02:16 +00:00
|
|
|
{
|
|
|
|
return( PilotOffsetGetSetting(0) );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void
|
2002-04-18 16:51:47 +00:00
|
|
|
setPilotYOffset (float value)
|
2002-02-05 23:02:16 +00:00
|
|
|
{
|
|
|
|
PilotOffsetSet(1, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
static float
|
2002-04-18 16:51:47 +00:00
|
|
|
getPilotYOffset ()
|
2002-02-05 23:02:16 +00:00
|
|
|
{
|
|
|
|
return( PilotOffsetGetSetting(1) );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void
|
2002-04-18 16:51:47 +00:00
|
|
|
setPilotZOffset (float value)
|
2002-02-05 23:02:16 +00:00
|
|
|
{
|
|
|
|
PilotOffsetSet(2, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
static float
|
2002-04-18 16:51:47 +00:00
|
|
|
getPilotZOffset ()
|
2002-02-05 23:02:16 +00:00
|
|
|
{
|
|
|
|
return( PilotOffsetGetSetting(2) );
|
|
|
|
}
|