D3DXCreateTextureGutterHelper

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

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

Parameters

Width
[in] Width of the texture, in pixels.
Height
[in] Height of the texture, in pixels.
pMesh
[in] Pointer to an input ID3DXMesh mesh object.
GutterSize
[in] Number of texels by which to over-sample the texture and create the gutter region. Must be at least 1.
ppBuffer
[in, out] Pointer to an ID3DXTextureGutterHelper object to be created.

Return Values

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

Header: Declared in D3dx9mesh.h.