71598c12f8
These are the updates for the View manager properties. Removed the last of items (within the viewer/viewmgr) hard coded to view number. Added support for per view configuration of ground level nearplane value. Tower views look very nice with little or no z-buffer problem in the models. Pilot offset dialog can be used to move eye in all views.
67 lines
1.1 KiB
C++
67 lines
1.1 KiB
C++
#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
|
|
|
|
/* 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) );
|
|
}
|