XPLMDrawingPhase

From X-Plane SDK
Jump to: navigation, search

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_FirstScene0 This is the earliest point at which you can draw in 3-d.
xplm_Phase_Terrain5 Drawing of land and water.
xplm_Phase_Airports10 Drawing runways and other airport detail.
xplm_Phase_Vectors15 Drawing roads, trails, trains, etc.
xplm_Phase_Objects20 3-d objects (houses, smokestacks, etc.
xplm_Phase_Airplanes25 External views of airplanes, both yours and the AI aircraft.
xplm_Phase_LastScene30 This is the last point at which you can draw in 3-d.
xplm_Phase_FirstCockpit35 This is the first phase where you can draw in 2-d.
xplm_Phase_Panel40 The non-moving parts of the aircraft panel.
xplm_Phase_Gauges45 The moving parts of the aircraft panel.
xplm_Phase_Window50 Floating windows from plugins.
xplm_Phase_LastCockpit55 The last change to draw in 2d.
xplm_Phase_LocalMap3D100 3-d Drawing for the local map. Use regular OpenGL coordinates to draw in this phase.
xplm_Phase_LocalMap2D101 2-d Drawing of text over the local map.
xplm_Phase_LocalMapProfile102 Drawing of the side-profile view in the local map screen.