Configurable Chase Camera (#188)
* ignore binaries * Add terrain probe * update camera system * change to tabs * formatting * compiles on windows 10 * use local view type enum * basic view type must always be changed * Code formatting
This commit is contained in:
committed by
Jason Watkins
parent
1fd6400a98
commit
c0abcf729f
@@ -14,6 +14,23 @@ namespace XPC
|
||||
{
|
||||
/// A function that handles a message.
|
||||
typedef void(*MessageHandler)(const Message&);
|
||||
|
||||
enum class VIEW_TYPE
|
||||
{
|
||||
XPC_VIEW_FORWARDS = 73,
|
||||
XPC_VIEW_DOWN,
|
||||
XPC_VIEW_LEFT,
|
||||
XPC_VIEW_RIGHT,
|
||||
XPC_VIEW_BACK,
|
||||
XPC_VIEW_TOWER,
|
||||
XPC_VIEW_RUNWAY,
|
||||
XPC_VIEW_CHASE,
|
||||
XPC_VIEW_FOLLOW,
|
||||
XPC_VIEW_FOLLOWWITHPANEL,
|
||||
XPC_VIEW_SPOT,
|
||||
XPC_VIEW_FULLSCREENWITHHUD,
|
||||
XPC_VIEW_FULLSCREENNOHUD,
|
||||
};
|
||||
|
||||
/// Handles incoming messages and manages connections.
|
||||
///
|
||||
@@ -61,7 +78,8 @@ namespace XPC
|
||||
static void HandleXPlaneData(const Message& msg);
|
||||
static void HandleUnknown(const Message& msg);
|
||||
|
||||
static int CamFunc( XPLMCameraPosition_t * outCameraPosition, int inIsLosingControl, void *inRefcon);
|
||||
static int CamCallback_RunwayCam( XPLMCameraPosition_t * outCameraPosition, int inIsLosingControl, void *inRefcon);
|
||||
static int CamCallback_ChaseCam( XPLMCameraPosition_t * outCameraPosition, int inIsLosingControl, void *inRefcon);
|
||||
|
||||
struct CameraProperties{
|
||||
double loc[3];
|
||||
|
||||
Reference in New Issue
Block a user