Wiki > TV3D65 Index > TVEngine



-This page has been generated automatically. Please improve it by adding a description and additional information.


VB.NET SwitchFullscreen(iWidth As Integer , iHeight As Integer , iBPP As Integer , eDepthBufferFormat As CONST_TV_DEPTHBUFFERFORMAT , hOptionalNewHandle As IntPtr) As Boolean
C++ bool SwitchFullscreen(int iWidth , int iHeight , int iBPP , cCONST_TV_DEPTHBUFFERFORMAT eDepthBufferFormat , cIntPtr hOptionalNewHandle)


iWidthNoiWidth description
iHeightNoiHeight description
iBPPYesiBPP description
eDepthBufferFormatYeseDepthBufferFormat description
hOptionalNewHandleYeshOptionalNewHandle description


Boolean Returns whether the switch to Fullscreen was successful.


ExampleBasic example.


  • Please add any notes or tips for this method.

Switching to Fullscreen mode requires that the previous render target was a Form. The switch will fail if for example having rendered in a Label or a PictureBox. A trick is to create a new form on the fly, make it visible, and then pass it’s handle as the optional handle parameter in SwitchFullscreen. Then TV3D will use that form, and DirectX will expand it to a fullscreen thingy. Upon a possible return back to windowed mode, one can pass the handle of the original Label/Picturebox/etc as last argument (optional handle) in SwitchWindowed.

tvengine/switchfullscreen.txt · Last modified: 2013/11/22 13:31