Microsoft DirectX 8.1 (Visual Basic)

Direct3DTexture8.GetSurfaceLevel

Retrieves the specified texture surface level.

object.GetSurfaceLevel( _ 
    Level As Long) As Direct3DSurface8

Parts

object
Object expression that resolves to a Direct3DTexture8 object.
Level
Identifies a level of the texture resource. This method returns a surface for the level specified by this parameter. The top-level surface is denoted by 0.

Return Values

A Direct3DSurface8 object, representing the returned 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.