Microsoft DirectX 8.1 (C++) |
The methods from the ID3DXTechnique interface have been moved into the ID3DXEffect interface for Microsoft® DirectX® 8.1.
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 ID3DXEffect interface is obtained by calling D3DXCreateEffect or D3DXCreateEffectFromFile. The methods of the ID3DXEffect interface can be organized into the following groups.
Copying | CloneEffect |
GetCompiledEffect | |
Effect Parameters | SetDword |
SetFloat | |
SetMatrix | |
SetPixelShader | |
SetString | |
SetTexture | |
SetVector | |
SetVertexShader | |
Effect Parameter Information | GetDword |
GetFloat | |
GetMatrix | |
GetParameterDesc | |
GetPixelShader | |
GetString | |
GetTexture | |
GetVector | |
GetVertexShader | |
Information | GetDesc |
GetDevice | |
GetPassDesc | |
Techniques | FindNextValidTechnique |
GetTechnique | |
GetTechniqueDesc | |
SetTechnique | |
Validate | |
Technique Application | Begin |
End | |
Pass | |
Miscellaneous | OnLostDevice |
OnResetDevice |
The ID3DXEffect interface, like all COM interfaces, inherits from the IUnknown Interface.
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, D3DXCreateEffectFromFile, D3DXCreateEffectFromResource