次の方法で共有


Device.GetCubeTexture(Int32) Method (Microsoft.DirectX.Direct3D)

Retrieves the cube texture assigned to a stage for a device.

Definition

Visual Basic Public Function GetCubeTexture( _
    ByVal stage As Integer _
) As CubeTexture
C# public CubeTexture GetCubeTexture(
    int stage
);
C++ public:
CubeTextureGetCubeTexture(
    int stage
);
JScript public function GetCubeTexture(
    stage : int
) : CubeTexture;

Parameters

stage System.Int32
Stage identifier of the CubeTexture to retrieve. Stage identifiers are zero-based.

Return Value

Microsoft.DirectX.Direct3D.CubeTexture
A CubeTexture object that represents the returned CubeTexture.

Remarks

Exceptions

InvalidOperationExceptionLeave Site

The texture returned was not of type CubeTexture.