XPLMDrawingPhase
From X-Plane SDK
XPLMDrawingPhase
This constant indicates which part of drawing we are in. Drawing is done from the back to the front. We get a callback before or after each item. Metaphases provide access to the beginning and end of the 3d (scene) and 2d (cockpit) drawing in a manner that is independent of new phases added via x-plane implementation.
WARNING: As X-Plane's scenery evolves, some drawing phases may cease to exist and new ones may be invented. If you need a particularly specific use of these codes, consult Austin and/or be prepared to revise your code as X-Plane evolves.
| xplm_Phase_FirstScene | 0 | This is the earliest point at which you can draw in 3-d. |
| xplm_Phase_Terrain | 5 | Drawing of land and water. |
| xplm_Phase_Airports | 10 | Drawing runways and other airport detail. |
| xplm_Phase_Vectors | 15 | Drawing roads, trails, trains, etc. |
| xplm_Phase_Objects | 20 | 3-d objects (houses, smokestacks, etc. |
| xplm_Phase_Airplanes | 25 | External views of airplanes, both yours and the AI aircraft. |
| xplm_Phase_LastScene | 30 | This is the last point at which you can draw in 3-d. |
| xplm_Phase_FirstCockpit | 35 | This is the first phase where you can draw in 2-d. |
| xplm_Phase_Panel | 40 | The non-moving parts of the aircraft panel. |
| xplm_Phase_Gauges | 45 | The moving parts of the aircraft panel. |
| xplm_Phase_Window | 50 | Floating windows from plugins. |
| xplm_Phase_LastCockpit | 55 | The last change to draw in 2d. |
| xplm_Phase_LocalMap3D | 100 | 3-d Drawing for the local map. Use regular OpenGL coordinates to draw in this phase. |
| xplm_Phase_LocalMap2D | 101 | 2-d Drawing of text over the local map. |
| xplm_Phase_LocalMapProfile | 102 | Drawing of the side-profile view in the local map screen. |
X-Plane SDK