| Microsoft DirectX 8.1 (Visual Basic) |
Locks a rectangle on a cube texture resource.
object.LockRect( _
FaceType As CONST_D3DCUBEMAP_FACES, _
Level As Long, _
LockedRect As D3DLOCKED_RECT, _
Rect As Any, _
Flags As Long)
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.
For performance reasons, dirty regions are only recorded for level zero of a texture. Dirty regions are automatically recorded when LockRect is called without D3DLOCK_NO_DIRTY_UPDATE or D3DLOCK_READONLY. See Direct3DDevice8.UpdateTexture for more information.
A multisample backbuffer cannot be locked.
Direct3DCubeTexture8.AddDirtyRect, Direct3DCubeTexture8.GetLevelDesc, Direct3DCubeTexture8.UnlockRect