Microsoft DirectX 8.1 (C++) |
Retrieves a description of one face of the specified cube texture level.
HRESULT GetLevelDesc( UINT Level, D3DSURFACE_DESC* pDesc );
The D3DSURFACE_DESC structure contains a Size member, which is the size of one face in the cube. To get the size of the entire cube, multiply the Size data by six.
If the method succeeds, the return value is D3D_OK.
D3DERR_INVALIDCALL is returned if one or more of the arguments are invalid.
Header: Declared in D3d8.h.
Import Library: Use D3d8.lib.
IDirect3DCubeTexture8::AddDirtyRect, IDirect3DCubeTexture8::LockRect, IDirect3DCubeTexture8::UnlockRect