XPMP2
X-Plane multiplayer library 2 - using instancing
Deprecated List
Class XPCAircraft
Only provided for backwards compile-compatibility. New implementations should subclass XPMP2::Aircraft directly.
File XPCAircraft.h
XPCAircraft bases on and is compile-compatible to the XPCAircraft wrapper class provided with the original libxplanemp. In XPMP2, however, this class is not a wrapper but derived from XPMP2::Aircraft, which is the actual means of managing aircraft, Hence, it includes a lot more members.
New implementations should derive directly from XPMP2::Aircraft.
Member XPMPCreatePlane (const char *inICAOCode, const char *inAirline, const char *inLivery, XPMPPlaneData_f inDataFunc, void *inRefcon, XPMPPlaneID inModeS_id)
Subclass XPMP2::Aircraft instead
Member XPMPCreatePlaneWithModelName (const char *inModelName, const char *inICAOCode, const char *inAirline, const char *inLivery, XPMPPlaneData_f inDataFunc, void *inRefcon, XPMPPlaneID inModeS_id)
Subclass XPMP2::Aircraft instead
Member XPMPDefaultPlaneRenderer (int)
No longer supported.
Member XPMPDeinitDefaultPlaneRenderer (void)
No longer supported.
Member XPMPDestroyPlane (XPMPPlaneID _id)
Delete subclassed XPMP2::Aircraft object instead.
Member XPMPDumpOneCycle (void)
No longer supported as rendering is done by X-Plane's instancing
Member XPMPGetModelInfo (int inIndex, const char **outModelName, const char **outIcao, const char **outAirline, const char **outLivery)
Instead, use XPMPGetModelInfo2().
This legacy function is defined with pointers to text arrays as return type. This is rather unsafe. XPMP2's internal maps and buffers may change if more models are loaded, hence pointers may become invalid. Don't rely on these pointers staying valid over an extended period of time.
Member XPMPGetPlaneData (XPMPPlaneID, XPMPPlaneDataType, void *)
Not supported in XPMP2! In the legacy library this is actually more like an internal function, calling all callback functions for querying aircraft data (much like XPCAircraft::UpdatePosition() is now in XPMP2). I doubt that it was intended to be called from the outside in the first place.
Member XPMPGetPlaneICAOAndLivery (XPMPPlaneID inPlane, char *outICAOCode, char *outLivery)
This legacy function is defined in a rather unsafe way. Instead, use XPMPGetAircraft() and access PMP2::Aircraft::acIcaoType and XPMP2::Aircraft::acLivery directly.
Member XPMPInitDefaultPlaneRenderer (void)
No longer supported.
File XPMPPlaneRenderer.h
None of these functions are supported any longer, their definitions are only provided for backward compatibility.
Member XPMPRenderPlanes_f )(int inIsBlend, void *inRef)
Unsupported in XPMP2. The type definition is available to stay compile-time compatible, but the callback will not be called.
Member XPMPSetPlaneRenderer (XPMPRenderPlanes_f, void *)
Unsupported in XPMP2. The function is available to stay compile-time compatible, but it does nothing.