ID3DXRenderToEnvMap::BeginCube method

Initiate the rendering of a cubic environment map.

Syntax

HRESULT BeginCube(
  [in] LPDIRECT3DCUBETEXTURE9 pCubeTex
);

Parameters

pCubeTex [in]

Type: LPDIRECT3DCUBETEXTURE9

Pointer to an IDirect3DCubeTexture9 interface that represents the cube texture to which to render.

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

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

Requirements

Requirement Value
Header
D3dx9core.h
Library
D3dx9.lib

See also

ID3DXRenderToEnvMap

ID3DXRenderToEnvMap::End