IDirect3DCubeTexture9::GetLevelDesc method (d3d9.h)

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

Syntax

HRESULT GetLevelDesc(
  [in]  UINT            Level,
  [out] D3DSURFACE_DESC *pDesc
);

Parameters

[in] Level

Type: UINT

Specifies a level of a mipmapped cube texture.

[out] pDesc

Type: D3DSURFACE_DESC*

Pointer to a D3DSURFACE_DESC structure, describing one face of the specified cube texture level.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be: D3DERR_INVALIDCALL.

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.

Requirements

Requirement Value
Target Platform Windows
Header d3d9.h (include D3D9.h)
Library D3D9.lib

See also

IDirect3DCubeTexture9

IDirect3DCubeTexture9::AddDirtyRect

IDirect3DCubeTexture9::LockRect

IDirect3DCubeTexture9::UnlockRect