Microsoft DirectX 8.1 (Visual Basic)

Direct3DBaseTexture8.GetLevelCount

Returns the number of texture levels in a multilevel texture.

object.GetLevelCount() As Long

Parts

object
Object expression that resolves to a Direct3DBaseTexture8 object.

Return Values

A Long value, indicating the number of texture levels in a multilevel texture.

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.

Applies To

This method applies to the following classes, which implement methods from Direct3DBaseTexture8.