ID3DXRenderToEnvMap::BeginCube

Initiate the rendering of a cubic environment map.

HRESULT BeginCube(
  LPDIRECT3DCUBETEXTURE9 pCubeTex
);

Parameters

pCubeTex
[in] Pointer to an IDirect3DCubeTexture9 interface that represents the cube texture to which to render.

Return Values

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

Remarks

See ID3DXRenderToEnvMap::Face to draw each of the 6 faces.

Requirements

Header: Declared in D3dx9core.h.

See Also

ID3DXRenderToEnvMap::End