Deprecated: Function split() is deprecated in /home/wiki/public_html/inc/common.php on line 533

Warning: Cannot modify header information - headers already sent by (output started at /home/wiki/public_html/inc/common.php:533) in /home/wiki/public_html/inc/actions.php on line 71
tvscene:createmultirendersurface [TV3DWiki]
 

Wiki > TV3D65 Index > TVScene

CreateMultiRenderSurface

DESCRIPTION

Generates multiple render surfaces( targets ) for use in advanced shader outputting. This allows for rendering on up to 4 render surfaces in one pass.

See: MSDN

DECLARATION

VB.NET CreateMultiRenderSurface(iNumRenderTargets As Integer , iWidth As Integer , iHeight As Integer , bUseDepth As Boolean , bUseMainBufferSize As Boolean , fMainBufferScale As Single , iFormat1 As CONST_TV_RENDERSURFACEFORMAT , iFormat2 As CONST_TV_RENDERSURFACEFORMAT , iFormat3 As CONST_TV_RENDERSURFACEFORMAT , iFormat4 As CONST_TV_RENDERSURFACEFORMAT , sName As String) As TVRenderSurface
C++ cTVRenderSurface *CreateMultiRenderSurface(int iNumRenderTargets , int iWidth , int iHeight , bool bUseDepth , bool bUseMainBufferSize , float fMainBufferScale , cCONST_TV_RENDERSURFACEFORMAT iFormat1 , cCONST_TV_RENDERSURFACEFORMAT iFormat2 , cCONST_TV_RENDERSURFACEFORMAT iFormat3 , cCONST_TV_RENDERSURFACEFORMAT iFormat4 , char* sName )

PARAMETERS

NAMEOPTIONALDESCRIPTION
iNumRenderTargetsNoNumber of targets to create( max 4 ).
iWidthNoWidth of the targets.
iHeightNoHeight of the targets.
bUseDepthNoKeep depth.
bUseMainBufferSizeNoUse main viewport dimensions.
fMainBufferScaleNoScale dimensions.
iFormat1NoSurface format of target 1.
iFormat2NoSurface format of target 2.
iFormat3NoSurface format of target 3.
iFormat4NoSurface format of target 4.
sNameNoName of this MRT.

RETURN VALUE

TVRenderSurface Pointer to instantiated render surface.

EXAMPLES

Example Basic example.

TIPS

  • The targets can be different formats but they must all share the same bit depth.
 
tvscene/createmultirendersurface.txt · Last modified: 2009/12/01 10:30 by 90.200.204.200