Microsoft DirectX 8.1 (Visual Basic)

Direct3DBaseTexture8.GetLOD

Returns a value clamped to the maximum level of detail (LOD) set for a managed texture.

object.GetLOD() As Long

Parts

object
Object expression that resolves to a Direct3DBaseTexture8 object.

Return Values

A Long value, clamped to the maximum LOD value (one less than the total number of levels).

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.

Remarks

GetLOD is used for LOD control of managed textures. This method returns 0 on nonmanaged textures.

See Also

Direct3DBaseTexture8.SetLOD