![]() |
![]() |
![]() |
Initiate the rendering of a cubic environment map.
Syntax
HRESULT BeginCube(
LPDIRECT3DCUBETEXTURE9 pCubeTex );
Parameters
- pCubeTex
- [in] Pointer to an IDirect3DCubeTexture9 interface that represents the cube texture to which to render.
Return Value
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.
See Also
ID3DXRenderToEnvMap::End