GXGetVtxDescv

Syntax

#include <revolution/gx.h>

void GXGetVtxDescv( GXVtxDescList* attr_list );

Arguments

attr_list Pointer to an array of GXVtxDescList structures (a list of {attr, type} pairs). 

Return Values

None.

Description

This function allows an application to get the descriptors of multiple attributes. This function can be used to save the current vertex descriptor. The saved vertex descriptor can be made the current vertex descriptor by calling the GXSetVtxDescv function with attr_list as a parameter.

The constant GX_MAX_VTXDESCLIST_SZ can be used to statically allocate memory for attr_list:

GXVtxDescList attr_list[GX_MAX_VTXDESCLIST_SZ];
GXGetVtxDescv(attr_list);

The constant GX_MAX_VTXDESCLIST_SZ can also be used to dynamically allocate memory for attr_list

attr_list = (GXVtxDescList*) OSAlloc(GX_MAX_VTXDESCLIST_SZ * sizeof(GXVtxDescList));
GXGetVtxDescv(attr_list);

The descriptors for all attributes are gotten by the GXGetVtxDescv function.

See Also

GXVtxDescList, GXClearVtxDesc, GXSetVtxDesc

Revision History

2006/03/01 Initial version.


CONFIDENTIAL