Difference between revisions of "XPLMDrawWindow f"

From X-Plane SDK
Jump to: navigation, search
 
m (1 revision)
 
(No difference)

Latest revision as of 19:51, 20 April 2009

XPLMDrawWindow_f

typedef void (* XPLMDrawWindow_f)(
                                   XPLMWindowID         inWindowID,    
                                   void *               inRefcon);    
This function handles drawing. You are passed in your window and its refcon. Draw the window. You can use XPLM functions to find the current dimensions of your window, etc. When this callback is called, the OpenGL context will be set properly for cockpit drawing. NOTE: Because you are drawing your window over a background, you can make a translucent window easily by simply not filling in your entire window's bounds.