1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>GXGetVtxAttrFmtv</title>
10</head>
11
12<body>
13
14<h1 align="left">GXGetVtxAttrFmtv</h1>
15
16<h2>C Specification</h2>
17
18<dl>
19  <dd><pre><CODE>#include &lt;revolution/gx.h&gt;</CODE></pre>
20  </dd>
21  <dd><pre><CODE>void GXGetVtxAttrFmtv(
22    <a href="../Enumerated_Types/GXVtxFmt.html">GXVtxFmt</a> <em>          vtxfmt</em>,
23    <a href="../Structures/GXVtxAttrFmtList.html">GXVtxAttrFmtList</a>* <em> list</em> );</CODE></pre>
24  </dd>
25</dl>
26
27<h2>Arguments</h2>
28<TABLE border="1" cellspacing="0.1" cellpadding="3">
29  <tr>
30<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>vtxfmt</font></strong></em></TD>
31<TD width="520">Specifies the vertex format <a href="../Enumerated_Types/GXVtxFmt.html">number</a>.</TD>
32    </tr>
33  <tr>
34<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>list</font></strong></em></TD>
35<TD width="520">Specifies a pointer to an array of <a href="../Structures/GXVtxAttrFmtList.html"><code>GXVtxAttrFmtList</code></a> structures (a list of {<a href="../Enumerated_Types/GXAttr.html">attr</a>, <a href="../Enumerated_Types/GXCompCnt.html">cnt</a>, <a href="../Enumerated_Types/GXCompType.html">type</a>, frac}).&nbsp; </TD>
36    </tr>
37</TABLE>
38<h2>Return Values</h2>
39
40<p>None.</p>
41<H2>Description</H2>
42<P>This function gets multiple <em>attribute formats</em> 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).</P>
43<P>The constant <code>GX_MAX_VTXATTRFMTLIST_SZ</code> should be used to allocate the list.</P>
44<P><font size="2"><code>GXVtxAttrFmtList list[GX_MAX_VTXATTRFMTLIST_SZ];<br> GXGetVtxAttrFmtv( GX_VTXFMT3,&nbsp; list);</code></font></P>
45<P>or</P>
46<P><font size="2"><code>GXVtxAttrFmtList* list = OSAlloc(GX_MAX_VTXATTRFMTLIST_SZ * sizeof(GXVtxAttrFmtList));<br> GXGetVtxAttrFmtv( GX_VTXFMT3,&nbsp; list);</code></font></P>
47<P>This function gets all attributes of the vertex format.</P>
48<P>You can set a current vertex format using <a href="GXSetVtxAttrFmtv.html"><code>GXSetVtxAttrFmtv</code></a>.</P>
49
50<h2>See Also</h2>
51
52<p><a href="GXSetVtxAttrFmt.html"><CODE>GXSetVtxAttrFmt</CODE></a></p>
53<H2>Revision History</H2>
54<P>2006/03/01 Initial version.</P>
55<hr>
56<P>CONFIDENTIAL</p>
57</BODY>
58</HTML>