ID3DXRenderToEnvMap::BeginSphere method

Initiate the rendering of a spherical environment map.

Syntax

HRESULT BeginSphere(
  [in] LPDIRECT3DTEXTURE9 pTex
);

Parameters

pTex [in]

Type: LPDIRECT3DTEXTURE9

Pointer to an IDirect3DTexture9 interface that represents the texture to which to render.

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