Difference between revisions of "opcOpenRenderViewport"

From OrbiterWiki
Jump to navigation Jump to search
(created)
 
(Added category.)
 
Line 13: Line 13:
 
;<tt>fullscreen</tt>:''TRUE'' if a fullscreen video mode is used, ''FALSE'' for a windowed mode
 
;<tt>fullscreen</tt>:''TRUE'' if a fullscreen video mode is used, ''FALSE'' for a windowed mode
  
[[Category:API|OpenRenderViewport]][[Category:Plugin callbacks|OpenRenderViewport]]
+
[[Category: Articles]]
 +
[[Category:API|OpenRenderViewport]]
 +
[[Category:Plugin callbacks|OpenRenderViewport]]

Latest revision as of 15:50, 16 October 2022

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