RenderToEnvironmentMap.RenderToEnvironmentMap Constructor

Language:

Initializes a new instance of the RenderToEnvironmentMap class.

Definition

Visual Basic Public Sub New( _
    ByVal device As Device, _
    ByVal size As Integer, _
    ByVal mipLevels As Integer, _
    ByVal format As Format, _
    ByVal depthStencil As Boolean, _
    ByVal depthStencilFormat As DepthFormat _
)
C# public RenderToEnvironmentMap(
    Device device,
    int size,
    int mipLevels,
    Format format,
    bool depthStencil,
    DepthFormat depthStencilFormat
);
C++ public:
 RenderToEnvironmentMap(
    Devicedevice,
    int size,
    int mipLevels,
    Format format,
    bool depthStencil,
    DepthFormat depthStencilFormat
);
JScript public function RenderToEnvironmentMap(
    device : Device,
    size : int,
    mipLevels : int,
    format : Format,
    depthStencil : boolean,
    depthStencilFormat : DepthFormat
);

Parameters

device Microsoft.DirectX.Direct3D.Device
A Device to associate with the render surface.
size System.Int32
Value that represents the size of the render surface.
mipLevels System.Int32
Value that represents the number of mipmap levels.
format Microsoft.DirectX.Direct3D.Format
Member of the Format enumeration that describes the pixel format of the environment map.
depthStencil System.Boolean
Set to true if the render surface supports a depth-stencil surface; otherwise, false.
depthStencilFormat Microsoft.DirectX.Direct3D.DepthFormat
If depthStencil is true, this parameter is a member of the Format enumeration that describes the environment map's depth-stencil format.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center