Microsoft DirectX 8.0 (C++) |
The ID3DXEffect interface is used to set and query effects, and to choose techniques. An effect object can contain multiple techniques to render the same effect.
The methods of the ID3DXEffect interface can be organized into the following groups.
Copying | CloneEffect |
Effects | SetDword |
SetFloat | |
SetMatrix | |
SetPixelShader | |
SetTexture | |
SetVector | |
SetVertexShader | |
Effects Information | GetDword |
GetFloat | |
GetMatrix | |
GetParameterDesc | |
GetPixelShader | |
GetTexture | |
GetVector | |
GetVertexShader | |
Information | GetDesc |
GetDevice | |
Technique | GetTechnique |
GetTechniqueDesc |
The ID3DXEffect interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods.
IUnknown | AddRef |
QueryInterface | |
Release |
The LPD3DXEFFECT type is defined as a pointer to the ID3DXEffect interface.
typedef struct ID3DXEffect *LPD3DXEFFECT;
Header: Declared in D3dx8effect.h.
Import Library: Use D3dx8.lib.
D3DXCreateEffect, D3DXCompileEffect, D3DXCompileEffectFromFileA, D3DXCompileEffectFromFileW