IFXAuthorFace

This data structure provides an authoring view of geometry topology—how vertices and their attributes are connected—and abstracts how face data is stored. It refers to all attributes via integer indices (IFXAuthorGeomIndex) stored in continuous arrays in IFXAuthorMesh. Example attributes include position, normals, texture coordinates, and vertex colors.

Interface Methods

Description

Position

Returns a pointer to the face vertex positions at index

Normal

Returns a pointer to the face vertex normals

VertexColor

Returns a pointer to the face vertex colors

TextureCoord

Returns a pointer to the face vertex texture coordinates

GenericVertexAttribute

Returns a pointer to the face vertex generic attributes

ShaderId

Returns a pointer to the face shader ID

GenericFaceAttribute

Returns a pointer to the generic face attribute


IFXAuthorFace::Position(U32 index)

This method returns a pointer to the face vertex positions at index.

Parameters:

U32 index

Index of the specific attribute

Return Values:

IFXAuthorGeomIndex&

Comments:

This reference operator is intended to be used as both a Set and Get accessor.


IFXAuthorFace::Normal(U32 index)

This method returns a pointer to the face vertex normals.

Parameters:

U32 index

Index of the specific attribute

Return Values:

IFXAuthorGeomIndex&


IFXAuthorFace::VertexColor(U32 index U32 layerNum=0)

This method returns a pointer to the face vertex colors.

Parameters:

U32 index

Index of the specific attribute

U32 layerNum=0

Defaults to layer 0 if no layer is specified

Return Values:

IFXAuthorGeomIndex&


IFXAuthorFace::TextureCoord(U32 index U32 layerNum=0)

This method returns a pointer to the face vertex texture coordinates.

Parameters:

U32 index

Index of the specific attribute

U32 layerNum=0

Defaults to layer 0 if no layer is specified

Return Values:

IFXAuthorGeomIndex&


IFXAuthorFace::GenericVertexAttribute(U32 index )

This method returns a pointer to the face vertex generic attributes.

Parameters:

U32 index

Index of the specific attribute

Return Values:

IFXAuthorGeomIndex&


IFXAuthorFace::ShaderId()

This method returns a pointer to the face shader ID.

Return Values:

IFXAuthorGeomIndex&


IFXAuthorFace::GenericFaceAttribute()

This method returns a pointer to the generic face attribute.

Return Values:

IFXAuthorGeomIndex&

 

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