ID3DXRenderToEnvMap::Face method
Initiate the drawing of each face of an environment map.
Syntax
HRESULT Face(
[in] D3DCUBEMAP_FACES Face,
[in] DWORD MipFilter
);
Parameters
-
Face [in]
-
Type: D3DCUBEMAP_FACES
The first face of the environmental cube map. See D3DCUBEMAP_FACES.
-
MipFilter [in]
-
Type: DWORD
A valid combination of one or more D3DX_FILTER flags.
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
This method must be called once for each type of environment map. The only exception is a cubic environment map which requires this method to be called six times, once for each face in D3DCUBEMAP_FACES. For more information, see Environment Mapping (Direct3D 9).
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also