?/TD> |
Microsoft DirectX 9.0 |
Uses a high-level language texture target to fill each texel of each mipmap level of a texture.
Syntax
HRESULT D3DXFillCubeTextureTX(
LPDIRECT3DCUBETEXTURE9 pTexture, CONST WORD* pFunction, CONST D3DXVECTOR4* pConstants, UINT dxConstants );
Parameters
- pTexture
- [in] Pointer to an IDirect3DCubeTexture9 object, representing the texture to be filled.
- pFunction
- [in] Pointer to a buffer containing the compiled function.
- pConstants
- [in] Array of constants. This is provided by the application from the constant table. See D3DXVECTOR4.
- dxConstants
- [in] Number of constants.
Return Value
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_NOTAVAILABLE This device does not support the queried technique. D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value.
Remarks
The high-level language texture target should be a compiled function taking two parameters and returning a color.
Function Information
Header d3dx9tex.h Import library d3dx9.lib Minimum operating systems Windows 98
See Also
D3DXFillTextureTX, D3DXFillVolumeTextureTX