GXGetVtxAttrFmtv

Syntax

#include <revolution/gx.h>

void GXGetVtxAttrFmtv( 
    GXVtxFmt           vtxfmt, 
    GXVtxAttrFmtList*  list );

Arguments

vtxfmt Specifies the vertex format number.
list Specifies a pointer to a GXVtxAttrFmtList structure array (a list of {attr, cnt, type, and 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 (for example, to push/pop the vertex format).

Be sure to use GX_MAX_VTXATTRFMTLIST_SZ to allocate the buffer specified in 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 the current vertex format using the GXSetVtxAttrFmtv function.

See Also

GXSetVtxAttrFmt

Revision History

2006/03/01 Initial version.


CONFIDENTIAL