D3DXCreateTextureGutterHelper function

Creates an ID3DXTextureGutterHelper object from an input mesh and texture data.

Syntax

HRESULT D3DXCreateTextureGutterHelper(
  _In_    UINT                      Width,
  _In_    UINT                      Height,
  _In_    LPD3DXMESH                pMesh,
  _In_    FLOAT                     GutterSize,
  _Inout_ LPD3DXTEXTUREGUTTERHELPER *ppBuffer
);

Parameters

Width [in]

Type: UINT

Width of the texture, in pixels.

Height [in]

Type: UINT

Height of the texture, in pixels.

pMesh [in]

Type: LPD3DXMESH

Pointer to an input ID3DXMesh mesh object.

GutterSize [in]

Type: FLOAT

Number of texels by which to over-sample the texture and create the gutter region. Must be at least 1.

ppBuffer [in, out]

Type: LPD3DXTEXTUREGUTTERHELPER*

Pointer to an ID3DXTextureGutterHelper object to be created.

Return value

Type: HRESULT

If the function succeeds, the return value is S_OK. If the function fails, the return value can be one of these: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Remarks

Use D3DXConcatenateMeshes to transform a scene to new coordinates.

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

Precomputed Radiance Transfer Functions