#include <revolution/gx.h>
void GXGetVtxAttrFmt(
GXVtxFmt vtxfmt,
GXAttr attr,
GXCompCnt* cnt,
GXCompType* type,
u8* frac);
| 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. |
None.
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 the GXSetVtxAttrFmt function to describe an attribute format.
GXSetVtxAttrFmtv, GXGetVtxAttrFmtv, GXSetVtxDescv, GXGetVtxDescv, GXSetVtxDesc, GXBegin
2006/03/01 Initial version.
CONFIDENTIAL