GXGetVtxAttrFmtv

C Specification

#include <revolution/gx.h>
void GXGetVtxAttrFmtv(
GXVtxFmt        vtxfmt,
GXVtxAttrFmtList*  list );

Arguments

vtxfmt Specifies the vertex format number.
list Specifies a pointer to an array of GXVtxAttrFmtList structures (a list of {attr, cnt, type, frac}). 

Return Values

None.

Description

This function gets multiple attribute formats within a single vertex format. This is useful when you need to get all the attributes in a vertex format at once (e.g., to push/pop the vertex format).

The constant GX_MAX_VTXATTRFMTLIST_SZ should be used to allocate the list.

GXVtxAttrFmtList list[GX_MAX_VTXATTRFMTLIST_SZ];
GXGetVtxAttrFmtv( GX_VTXFMT3,  list);

or

GXVtxAttrFmtList* list = OSAlloc(GX_MAX_VTXATTRFMTLIST_SZ * sizeof(GXVtxAttrFmtList));
GXGetVtxAttrFmtv( GX_VTXFMT3,  list);

This function gets all attributes of the vertex format.

You can set a current vertex format using GXSetVtxAttrFmtv.

See Also

GXSetVtxAttrFmt

Revision History

03/01/2006 Initial version.