|
bool | XPMP2::IsInRect (float x, float y, const float bounds_ltrb[4]) |
| Tests if x/y lies within the rect, given as a float[4] array. More...
|
|
void | XPMP2::MapPrepareCacheCB (XPLMMapLayerID, const float *inTotalMapBoundsLeftTopRightBottom, XPLMMapProjectionID projection, void *) |
| Prepare map drawing information. More...
|
|
void | XPMP2::MapIconDrawingCB (XPLMMapLayerID inLayer, const float *inMapBoundsLeftTopRightBottom, float, float mapUnitsPerUserInterfaceUnit, XPLMMapStyle, XPLMMapProjectionID projection, void *refcon) |
| Actually draw the icons into the map. More...
|
|
void | XPMP2::MapLabelDrawingCB (XPLMMapLayerID inLayer, const float *inMapBoundsLeftTopRightBottom, float, float mapUnitsPerUserInterfaceUnit, XPLMMapStyle, XPLMMapProjectionID projection, void *refcon) |
| Actually draw the labels into th emap. More...
|
|
void | XPMP2::MapDeleteCB (XPLMMapLayerID inLayer, void *) |
| Called when a map is about to be deleted. More...
|
|
void | XPMP2::MapLayerCreate (const char *mapIdentifier) |
| Create our map layer for the given map. More...
|
|
void | XPMP2::MapCreateAll () |
| Loop all existing maps and create our map layer for them. More...
|
|
void | XPMP2::MapDestroyAll () |
| Remove all our map layers. More...
|
|
void | XPMP2::MapCreateCB (const char *mapIdentifier, void *) |
| Callback called when a map is created. We then need to add our layer to it. More...
|
|
void | XPMP2::MapInit () |
| Initialize the module. More...
|
|
void | XPMP2::MapCleanup () |
| Grace cleanup. More...
|
|
void | XPMPEnableMap (bool _bEnable, bool _bLabels) |
| Enable or disable the drawing of aircraft icons on X-Plane's map. More...
|
|
Implementation for creating the map layer.
Draws aircraft icons on X-Plane's maps in positions where our aircraft are. Aircraft icons are provided in a PNG icon sheet.
- See also
- https://developer.x-plane.com/sdk/XPLMMap/
- Author
- Birger Hoppe
- Copyright
- (c) 2020 Birger Hoppe
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.