Microsoft DirectX 8.1 (Visual Basic)

Direct3DCubeTexture8.GetCubeMapSurface

Retrieves a cube map surface.

object.GetCubeMapSurface( _ 
    FaceType As CONST_D3DCUBEMAP_FACES, _ 
    Level As Long) As Direct3DSurface8

Parts

object
Object expression that resolves to a Direct3DCubeTexture8 object.
FaceType
Member of the CONST_D3DCUBEMAP_FACES enumeration, identifying a cube map face.
Level
Specifies a level of a mipmapped cube texture.

Return Values

This method returns a Direct3DSurface8 object, representing the returned cube map surface.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.