Microsoft DirectX 8.1 (C++) |
Creates an effect from a Microsoft® Windows® resource.
HRESULT WINAPI D3DXCreateEffectFromResource( LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCTSTR pSrcresource, LPD3DXEFFECT* ppEffect, LPD3DXBUFFER* ppCompilationErrors );
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 |
D3DXERR_INVALIDDATA |
This function supports both Unicode and ANSI strings.
Effects can be created from a sequence of instructions in text strings, an effect file, or a Windows resource.
Header: Declared in D3dx8effect.h.
Import Library: Use D3dx8.lib.