IFXAuthorAllocationDescriptor

This class describes the maximum number of attributes expected for each IFXAuthorMesh. This descriptor is used by IFXAuthorMesh::Allocate() to allocate mesh memory. It is also used to read IFXAuthorFaceOffsetDescriptor, which describes the memory layout of each IFXAuthorFace.

Interface Methods

Description

IFXAuthorAllocationDescriptor

Constructor

~IFXAuthorAllocationDescriptor

Destructor

NumPositions

Returns the maximum number of vertices in the mesh

NumFaces

Returns the maximum number of faces in the mesh

NumNormals

Returns the maximum number of normals in the mesh

NumVertexColorLayers

Returns the maximum number of vertex color layers in the mesh

NumVertexColors

Returns the maximum number of vertex colors in the mesh

NumTexCoordLayers

Returns the current number of texture coordinate layers in the mesh

NumTexCoords

Returns the maximum number of texture coordinates in the mesh

NumGenericVertexAttributes

Returns the maximum number of generic vertex attributes in the mesh

GenericVertexAttributeSize

Returns the maximum size of each generic vertex attribute in the mesh

NumGenericFaceAttributes

Returns the maximum number of generic face attributes in the mesh

GenericFaceAttributeSize

Returns the maximum size of each generic face attribute in the mesh

FaceVertexCount

Returns the maximum number of face vertices in the mesh

VertexWeights

Indicates whether there are vertex weights

BaseVertices

Indicates whether there are base vertices


IFXAuthorAllocationDescriptor::IFXAuthorAllocationDescriptor()

This is the default constructor.

Parameters:

None


IFXAuthorAllocationDescriptor::~IFXAuthorAllocationDescriptor()

This is the default destructor.

Parameters:

None


IFXAuthorAllocationDescriptor::NumPositions()

This method returns the maximum number of vertices in the mesh.

Comments:

You will get an error 0x80000001 from IFXAuthorGeomCompiler::Compile() method if you do not call this method or set the value to zero.


IFXAuthorAllocationDescriptor::NumFaces()

This method returns the maximum number of faces in the mesh.

Comments:

You will get an error 0x80000001 from IFXAuthorGeomCompiler::Compile() method if you do not call this method or set the value to zero.


IFXAuthorAllocationDescriptor::NumNormals()

This method returns the maximum number of normals in the mesh.

Comments:

You will get an error 0x80000001 from IFXAuthorGeomCompiler::Compile() method if you do not call this method or set the value to zero.


IFXAuthorAllocationDescriptor::NumVertexColorLayers()

This method returns the maximum number of vertex color layers in the mesh.

Comments:

You will get an error 0x80000001 from IFXAuthorGeomCompiler::Compile() method if you set this number to anything other than zero or one.


IFXAuthorAllocationDescriptor::NumVertexColors()

This method returns the maximum number of vertex colors in the mesh.

Comments:

Defaults to layer 0 if no layer is specified.


IFXAuthorAllocationDescriptor::NumTexCoordLayers()

This method returns the current number of texture coordinate layers in the mesh.

Comments:

You will get an error 0x80000001 from IFXAuthorGeomCompiler::Compile() method if you set this number to anything other than zero or one.


IFXAuthorAllocationDescriptor::NumTexCoords()

This method returns the maximum number of texture coordinates in the mesh.

Comments:

Defaults to layer 0 if no layer is specified.


IFXAuthorAllocationDescriptor::NumGenericVertexAttributes()

This method returns the maximum number of generic vertex attributes in the mesh.

Comments:

You will get an error 0x80000001 from IFXAuthorGeomCompiler::Compile() method if you set this number to anything other than zero or one.


IFXAuthorAllocationDescriptor:: GenericVertexAttributeSize()

This method returns the maximum size of each generic vertex attribute in the mesh.


IFXAuthorAllocationDescriptor::NumGenericFaceAttributes()

This method returns the maximum number of generic face attributes in the mesh.

Comments:

You will get an error 0x80000001 from IFXAuthorGeomCompiler::Compile() method if you set this number to anything other than zero or one.


IFXAuthorAllocationDescriptor::GenericFaceAttributeSize()

This method returns the maximum size of each generic face attribute in the mesh.


IFXAuthorAllocationDescriptor::FaceVertexCount()

This method returns the maximum number of face vertices in the mesh.

Comments:

You will get an error 0x80000001 from IFXAuthorGeomCompiler::Compile() method if you set this count to any number other than three.


IFXAuthorAllocationDescriptor::VertexWeights()

This method indicates whether there are vertex weights.


IFXAuthorAllocationDescriptor::BaseVertices()

This method indicates whether there are base vertices.

 

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