IFXAuthorMeshGroup

The IFXAuthorGroup class groups together a set of IFXAuthorMeshes to specify an entire model. These structures are easy to manipulate, but must be compiled into an IFXMeshGroup for efficient run-time rendering.

Interface Methods

Description

Allocate

Allocates all memory required by the mesh

Deallocate

Frees all allocated memory

GetNumMesh

Returns the current number of meshes

GetMesh

Returns a pointer to each IFXAuthorMesh

SetMesh

Sets an IFXAuthorMesh structure to point to a specific mesh


IFXAuthorMeshGroup::Allocate()

This method allocates all memory required by the mesh as described in the IFXAuthorAllocationDescriptor.

Parameters:

None

Return Values

Comments:

Must be called after construction and prior to mesh usage.


IFXAuthorMeshGroup::Deallocate()

This method frees all allocated memory.

Parameters:

None

Return Values


IFXAuthorMeshGroup::GetNumMesh ()

This method returns the current number of meshes.

Parameters:

None

Return Values:

IFXAuthorGeomIndex


IFXAuthorMeshGroup::GetMesh(U32 index)

This method returns a pointer to each IFXAuthorMesh.

Parameters:

U32 index

Index of the specific IFXAuthorMesh

Return Values:

IFXAuthorMesh*


IFXAuthorMeshGroup::SetMesh(U32 index, IFXAuthorMesh* pMesh)

This method sets an IFXAuthorMesh structure to point to a specific mesh. This method must be called for each mesh to be accessed.

Parameters:

U32 index

Index of the specific IFXAuthorMesh

IFXAuthorMesh* pMesh

Pointer to the IFXAuthorMesh

Return Values:

IFXAuthorMesh*

Comments:

You will get an error 0x80000001 from IFXAuthorGeomCompiler::Compile() if any IFXAuthorMesh passed to the IFXAuthorMeshGroup() object with this method has not been initialized by passing a valid IFXAuthorAllocationDescriptor to IFXAuthorMesh::Initialize() method.

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