Microsoft DirectX 9.0

IRenderEngine::SetFilterGraph

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.

The ConnectFrontEnd method tears down any existing filter graph, but keeps the same Filter Graph Manager instance.

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also