opcOpenRenderViewport

From OrbiterWiki
Revision as of 09:12, 23 July 2005 by RaMan (talk | contribs) (created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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)

Parameters

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