opcOpenRenderViewport

From OrbiterWiki
Revision as of 15:50, 16 October 2022 by Arvil (talk | contribs) (Added category.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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)

Parameters[edit]

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