XPMP2
X-Plane multiplayer library 2 - using instancing
|
Implementation of 2-D routines, like drawing aircraft labels. More...
#include "XPMP2.h"
Namespaces | |
XPMP2 | |
Macros | |
#define | DEBUG_ENABLE_AC_LABELS "Aircraft labels %s" |
Functions | |
void | XPMP2::TwoDDrawLabels () |
Write the labels of all aircraft. More... | |
int | XPMP2::CPLabelDrawing (XPLMDrawingPhase, int, void *) |
Drawing callback, called by X-Plane in every drawing cycle. More... | |
void | XPMP2::TwoDActivate () |
Activate actual label drawing, esp. set up drawing callback. More... | |
void | XPMP2::TwoDDeactivate () |
Deactivate actual label drawing, esp. stop drawing callback. More... | |
void | XPMP2::TwoDInit () |
Initialize the module. More... | |
void | XPMP2::TwoDCleanup () |
Grace cleanup. More... | |
void | XPMPEnableAircraftLabels (bool _enable) |
Enable or disable drawing of labels with the aircraft. More... | |
void | XPMPDisableAircraftLabels () |
Disable drawing of labels with the aircraft. More... | |
bool | XPMPDrawingAircraftLabels () |
Returns if labels are currently configured to be drawn. More... | |
void | XPMPSetAircraftLabelDist (float _dist_nm, bool _bCutOffAtVisibility) |
Implementation of 2-D routines, like drawing aircraft labels.
2-D drawing is a bit "unnatural" as the aircraft are put into a 3-D world. These functions require to turn 3D coordinates into 2D coordinates.
#define DEBUG_ENABLE_AC_LABELS "Aircraft labels %s" |
void XPMPDisableAircraftLabels | ( | ) |
Disable drawing of labels with the aircraft.
Effectively calls XPMPEnableAircraftLabels()
bool XPMPDrawingAircraftLabels | ( | ) |
Returns if labels are currently configured to be drawn.
void XPMPEnableAircraftLabels | ( | bool | _enable | ) |
Enable or disable drawing of labels with the aircraft.
void XPMPSetAircraftLabelDist | ( | float | _dist_nm, |
bool | _bCutOffAtVisibility = true |
||
) |
Configure maximum label distance and if labels shall be cut off at reported visibility
_dist_nm | Maximum label distance in nm, default is 3, minimum is 1 |
_bCutOffAtVisibility | Shall labels not be drawn further away than XP's reported visibility? |