Microsoft DirectX 8.1 (C++) |
The SetFilterGraph method specifies a filter graph for the render engine to use.
Syntax
HRESULT SetFilterGraph(
IGraphBuilder *pFG
);
Parameters
pFG
Pointer to the IGraphBuilder interface of the filter graph.
Return Value
Returns one of the following HRESULT values:
Value | Description |
S_OK | Success. |
E_INVALIDARG | Invalid argument. |
E_MUST_INIT_RENDERER | Render engine failed to initialize. |
Remarks
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.
See Also