Share via


CubeTexture.GetCubeMapSurface(CubeMapFace,Int32) Method (Microsoft.DirectX.Direct3D)

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.