Microsoft DirectX 8.1 (Visual Basic) |
Retrieves a description of one face of the specified cube texture level.
object.GetLevelDesc( _ Level As Long, _ Desc As D3DSURFACE_DESC)
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.
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.
Direct3DCubeTexture8.AddDirtyRect, Direct3DCubeTexture8.LockRect, Direct3DCubeTexture8.UnlockRect