Microsoft DirectX 9.0 SDK Update (October 2004)

RenderToEnvironmentMap.RenderToEnvironmentMap Constructor

Language:

Note: This documentation is preliminary and is subject to change.

Initializes a new instance of the RenderToEnvironmentMap class.

Definition

Visual Basic .NET 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
);
Managed C++ public: RenderToEnvironmentMap(
    Device *device,
    int size,
    int mipLevels,
    Format format,
    bool depthStencil,
    DepthFormat depthStencilFormat
);
JScript .NET 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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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