D3DXFillCubeTexture

DirectX8

Microsoft DirectX 8.1 (C++)

D3DXFillCubeTexture

Uses a user-provided function to fill each texel of each mip level of a given cube texture.

HRESULT D3DXFillCubeTexture(
  LPDIRECT3DCUBETEXTURE8 pTexture,
  LPD3DXFILL3D           pFunction,
  LPVOID                 pData
);

Parameters

pTexture
[out, retval] Pointer to an IDirect3DCubeTexture8 interface, representing the filled texture.
pFunction
[in] Pointer to a LPD3DXFILL3D user-provided evaluator function, which will be used to compute the value of each texel.
pData
[in] Pointer to an arbitrary block of user-defined data. This pointer will be passed to the function provided in pFunction.

Return Values

If the function succeeds, the return value is D3D_OK.

If the function fails, the return value can be one of the following values.

D3DERR_INVALIDCALL

Requirements

  Header: Declared in D3dx8tex.h.
  Import Library: Use D3dx8.lib.