|Microsoft DirectX 9.0|
The SetFilterGraph method specifies a filter graph for the render engine to use.
HRESULT SetFilterGraph( IGraphBuilder *pFG );
Pointer to the IGraphBuilder interface of the filter graph.
Returns one of the following HRESULT values:
|E_MUST_INIT_RENDERER||Render engine failed to initialize.|
Most applications do not need to call this method. It is more typical to let the render engine build the graph for you, by calling the IRenderEngine::ConnectFrontEnd method.
This method fails if the render engine already has a filter graph.
Never retrieve a pointer to a filter graph created by one render engine and then use it as the parameter to this method on another render engine. Doing so will cause unpredictable results.
The ConnectFrontEnd method tears down any existing filter graph, but keeps the same Filter Graph Manager instance.
Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.
Library: Use strmiids.lib.