Microsoft DirectX 8.1 (Visual Basic)

Direct3DCubeTexture8.GetLevelDesc

Retrieves a description of one face of the specified cube texture level.

object.GetLevelDesc( _ 
    Level As Long, _ 
    Desc As D3DSURFACE_DESC)

Parts

object
Object expression that resolves to a Direct3DCubeTexture8 object.
Level
Specifies a level of a mipmapped cube texture.
Desc
A D3DSURFACE_DESC type, describing one face of the specified cube texture level.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL if one or more of the parameters are invalid.

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

Remarks

The D3DSURFACE_DESC structure contains a size member, which is the size of one face of the cube. To get the size of the entire cube, multiply the size data by six.

See Also

Direct3DCubeTexture8.AddDirtyRect, Direct3DCubeTexture8.LockRect, Direct3DCubeTexture8.UnlockRect