CubeTexture.GetCubeMapSurface Method

Language:

Retrieves a cube texture map surface.

Definition

Visual Basic Public Function GetCubeMapSurface( _
    ByVal faceType As CubeMapFace, _
    ByVal level As Integer _
) As Surface
C# public Surface GetCubeMapSurface(
    CubeMapFace faceType,
    int level
);
C++ public:
SurfaceGetCubeMapSurface(
    CubeMapFace faceType,
    int level
);
JScript public function GetCubeMapSurface(
    faceType : CubeMapFace,
    level : int
) : Surface;

Parameters

faceType Microsoft.DirectX.Direct3D.CubeMapFace
Member of the CubeMapFace enumerated type that identifies a cube map face.
level System.Int32
Level of a mipmapped cube texture.

Return Value

Microsoft.DirectX.Direct3D.Surface
A Surface object that represents the returned cube texture map surface.

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