opcOpenRenderViewport
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
- 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