ID3DXRenderToEnvMap::BeginHemisphere method

Initiate the rendering of a hemispheric environment map.

Syntax

HRESULT BeginHemisphere(
  [in] LPDIRECT3DTEXTURE9 pTexZPos,
  [in] LPDIRECT3DTEXTURE9 pTexZNeg
);

Parameters

pTexZPos [in]

Type: LPDIRECT3DTEXTURE9

Pointer to an IDirect3DTexture9 interface that represents the positive texture render surface.

pTexZNeg [in]

Type: LPDIRECT3DTEXTURE9

Pointer to an IDirect3DTexture9 interface that represents the negative texture render surface.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL.E_FAIL

Remarks

See ID3DXRenderToEnvMap::Face to draw the face.

Requirements

Requirement Value
Header
D3dx9core.h
Library
D3dx9.lib

See also

ID3DXRenderToEnvMap

ID3DXRenderToEnvMap::End