From OrbiterWiki
Revision as of 10:12, 23 July 2005 by RaMan (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Called after the simulation window has been opened. The DLL should use this function for initialisations which depend on the size of the render window. The size remains valid until the opcCloseRenderViewport method is called. Note that for windowed modes the width and height parameters may be smaller than the user-defined window size, to accommodate window borders and title line.

DLLCLBK void opcOpenRenderViewport (
                                   HWND renderWnd,
                                   DWORD width,
                                   DWORD height,
                                   BOOL fullscreen)


render window handle
width of the render viewport (pixel)
height of the render viewport (pixel)
TRUE if a fullscreen video mode is used, FALSE for a windowed mode