IFXWriteManager

This interface is derived from IFXUnknown and is used to write out a scenegraph to an IFXWriteBuffer.

Interface Methods

Description

Initialize

Initializes the Write Manager

Write

Writes the data to an IFXWriteBuffer

SetQualityFactor

Sets the quality factor


IFXWriteManager::Initialize(IFXCoreServices *pCoreServices)

Initializes the Write Manager with the Core Services object. From this the WriteManager obtains a pointer to the IFXSceneGraph object, which it needs during the Write() phase.

Parameters:

pCoreServices

Pointer to the Core Services object

Return Values


IFXWriteManager::Write(IFXWriteBuffer *pWriteBuffer, IFXExportOptions exportOptions)

Writes an IFXSceneGraph out to an IFXWriteBuffer, based on the options supplied in exportOptions. The IFXSceneGraph is obtained from the Core Services object provided through the call to Initialize().

Parameters:

pWriteBuffer

An IFXWriteBuffer interface. The WriteManager writes its data out to this interface.

exportOptions

This bitfield determines which of the sub-components of the scene graph is to be written out.

Return Values

Return values may also be generated by other components hidden within the Write Manager.

Comments:

IFXExportOptions is a bitfield which is created by using "OR" to join one or more of the following values:

IFXEXPORT_ANIMATION

IFXEXPORT_GEOMETRY

IFXEXPORT_LIGHTS

IFXEXPORT_MATERIALS

IFXEXPORT_NODE_HIERARCHY

IFXEXPORT_SHADERS

IFXEXPORT_TEXTURES

For convenience, the caller may specify IFXEXPORT_EVERYTHING instead of joining individual values with OR.


IFXWriteManager::SetQualityFactor(U32 qualityfactor, IFXExportOptions module)

This method sets the quality factor of the scenegraph elements that are to be written out.

Parameters:

qualityfactor

The quality factor of the scenegraph elements.

module

Describes the module to be written out.

Return Values

 

§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.