#include <revolution/gx.h>
void GXGetVtxAttrFmtv(
GXVtxFmt vtxfmt,
GXVtxAttrFmtList* list );
vtxfmt |
Specifies the vertex format number. |
list |
Specifies a pointer to an array of GXVtxAttrFmtList structures (a list of {attr, cnt, type, frac}). |
None.
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.
03/01/2006 Initial version.