Microsoft DirectX 8.1 (C++) |
The ID3DXRenderToEnvMap interface is used to generalize the process of rendering to environment maps.
An environment map is used to texture-map scene geometry to provide a more sophisticated scene without using complex geometry. This interface supports creating surfaces for the following kinds of geometry: cube, half sphere or hemispheric, parabolic, or sphere. An example using a cubic environment map is in the cube map sample.
The ID3DXRenderToEnvMap interface is obtained by calling the D3DXCreateRenderToEnvMap function. The methods of the ID3DXRenderToEnvMap interface can be organized into the following groups.
Information | GetDesc |
GetDevice | |
Rendering | BeginCube |
BeginHemisphere | |
BeginParabolic | |
BeginSphere | |
End | |
Face | |
Miscellaneous | OnLostDevice |
OnResetDevice |
The ID3DXRenderToEnvMap interface, like all COM interfaces, inherits the IUnknown Interface.
The LPD3DXRenderToEnvMap type is defined as a pointer to the ID3DXRenderToEnvMap interface.
typedef interface ID3DXRenderToEnvMap* LPD3DXRenderToEnvMap;
Header: Declared in D3dx8core.h.
Import Library: Use D3dx8.lib.