GXGetVtxAttrFmt

C Specification

#include <revolution/gx.h>
void GXGetVtxAttrFmt( 
        GXVtxFmt 	vtxfmt, 
        GXAttr 		attr, 
        GXCompCnt* 	cnt, 
        GXCompType* 	type, 
        u8* 		frac)

Arguments

vtxfmt Specifies the vertex format number
attr Specifies the attribute name. Accepted values are:GX_VA_POS, GX_VA_NRM, GX_VA_NBT, GX_VA_CLR0, GX_VA_CLR1, GX_VA_TEX0, GX_VA_TEX1, GX_VA_TEX2, GX_VA_TEX3, GX_VA_TEX4, GX_VA_TEX5, GX_VA_TEX6, GX_VA_TEX7.
cnt returns the component count.
type returns the component type.
frac returns the fixed point scale value.

Return Values

None.

Description

This function returns the attribute format (attr) of an attribute in the vertex attribute format table (VAT). Each attribute format describes the data type (type), number of elements (cnt), and, if necessary, a fixed point format (frac). The VAT can use eight vertex formats. The vertex format describes the format of all attributes in a vertex. Use GXSetVtxAttrFmt to describe an attribute format.

See Also

GXSetVtxAttrFmtv
GXGetVtxAttrFmtv
GXSetVtxDescv
GXGetVtxDescv
GXSetVtxDesc
GXBegin

Revision History

2006/03/01 Initial version.


CONFIDENTIAL