D3DX8.CreateRenderToSurface
Creates a render surface.
object.CreateRenderToSurface( _
D3DDevice As Direct3DDevice8, _
Width As Long, _
Height As Long, _
Format As CONST_D3DFORMAT, _
DepthStencil As Long, _
DepthStencilFormat As CONST_D3DFORMAT) As D3DXRenderToSurface
Parts
- object
- Object expression that resolves to a D3DX8 object.
- D3DDevice
- Direct3DDevice8 object, to be associated with the render surface.
- Width
- Width of the render surface, in pixels
- Height
- Height of the render surface, in pixels
- Format
- Member of the CONST_D3DFORMAT enumeration, describing the format of the render target.
- DepthStencil
- If 1, the render surface supports a depth-stencil surface. Otherwise this member is set to 0.
- DepthStencilFormat
- If DepthStencil is set to 1, this parameter is a member of the CONST_D3DFORMAT enumeration describing the depth-stencil format of the render surface.
Return Values
D3DXRenderToSurface object, representing the created polygon mesh.
Error Codes
If the method fails, an error is raised and Err.Number can be set to one of the following values.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
Remarks
The created polygon is centered at the origin.