ID3DXRenderToEnvMap

The ID3DXRenderToEnvMap interface is used to generalize the process of rendering to environment maps.

ID3DXRenderToEnvMap Members

Method Description
ID3DXRenderToEnvMap::BeginCube Initiate the rendering of a cubic environment map.
ID3DXRenderToEnvMap::BeginHemisphere Initiate the rendering of a hemispheric environment map.
ID3DXRenderToEnvMap::BeginParabolic Initiate the rendering of a parabolic environment map.
ID3DXRenderToEnvMap::BeginSphere Initiate the rendering of a spherical environment map.
ID3DXRenderToEnvMap::End Restore all render targets and, if needed, compose all the rendered faces into the environment map surface.
ID3DXRenderToEnvMap::Face Initiate the drawing of each face of an environment map.
ID3DXRenderToEnvMap::GetDesc Retrieves the description of the render surface.
ID3DXRenderToEnvMap::GetDevice Retrieves the Direct3D device associated with the environment map.
ID3DXRenderToEnvMap::OnLostDevice Use this method to release all references to video memory resources and delete all stateblocks. This method should be called whenever a device is lost, or before resetting a device.
ID3DXRenderToEnvMap::OnResetDevice Use this method to re-acquire resources and save initial state.

Remarks

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.

The ID3DXRenderToEnvMap interface is obtained by calling the D3DXCreateRenderToEnvMap function.

The LPD3DXRenderToEnvMap type is defined as a pointer to the ID3DXRenderToEnvMap interface.

typedef interface ID3DXRenderToEnvMap ID3DXRenderToEnvMap;
typedef interface ID3DXRenderToEnvMap *LPD3DXRenderToEnvMap;

Requirements

Header: Declared in D3dx9core.h.

Import Library: Use D3dx9.lib.