d3d9.dllGetLevelDesc
Microsoft DirectX 9.0 SDK Update (October 2004)

IDirect3DCubeTexture9::GetLevelDesc Method


Retrieves a description of one face of the specified cube texture level.

Syntax

HRESULT GetLevelDesc(      

    UINT Level,     D3DSURFACE_DESC *pDesc );

Parameters

Level
[in] Specifies a level of a mipmapped cube texture.
pDesc
[out] Pointer to a D3DSURFACE_DESC structure, describing one face of the specified cube texture level.

Return Value

If the method succeeds, the return value is D3D_OK.

D3DERR_INVALIDCALL is returned if one or more of the arguments are invalid.



Remarks

The D3DSURFACE_DESC structure contains Width and Height members, which describe the size of one face in the cube. To get the size of the entire cube, multiply six (the number of cube faces) by the product of Width and Height.

See Also

IDirect3DCubeTexture9::AddDirtyRect, IDirect3DCubeTexture9::LockRect, IDirect3DCubeTexture9::UnlockRect


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.