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>GXGetVtxAttrFmt</title>
10</head>
11
12<body>
13
14<h1 align="left">GXGetVtxAttrFmt</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXGetVtxAttrFmt(
21        <a href="../Enumerated_Types/GXVtxFmt.html">GXVtxFmt</a>        vtxfmt,
22        <a href="../Enumerated_Types/GXAttr.html">GXAttr</a>          attr,
23        <a href="../Enumerated_Types/GXCompCnt.html">GXCompCnt</a>*      cnt,
24        <a href="../Enumerated_Types/GXCompType.html">GXCompType</a>*     type,
25        u8* 		frac);
26</pre></dd></dl>
27
28<h2>Arguments</h2>
29<TABLE class="arguments" border="1" >
30  <tr>
31<TH>vtxfmt</TH>
32<TD>Specifies the vertex format <a href="../Enumerated_Types/GXVtxFmt.html">number</a>.&nbsp;</TD>
33    </tr>
34  <tr>
35<TH>attr</TH>
36<TD>Specifies the attribute name.&nbsp;Accepted values are: <code>GX_VA_POS, GX_VA_NRM, GX_VA_NBT, GX_VA_CLR0, GX_VA_CLR1, GX_VA_TEX0, GX_VA_TEX1, GX_VA_TEX2, GX_VA_TEX3, GX_VA_TEX4, GX_VA_TEX5, GX_VA_TEX6, GX_VA_TEX7</code>.</TD>
37    </tr>
38  <tr>
39<TH>cnt</TH>
40<TD>Returns the component count.</TD>
41    </tr>
42  <tr>
43<TH>type</TH>
44<TD>Returns the component type.</TD>
45    </tr>
46  <tr>
47<TH>frac</TH>
48<TD>Returns the fixed-point scale value.</TD>
49    </tr>
50</TABLE>
51
52<h2>Return Values</h2>
53<p>None.</p>
54
55<H2>Description</H2>
56<P>This function returns the attribute format (<SPAN class="argument">attr</SPAN>) of an attribute in the vertex attribute format table (VAT). Each attribute format describes the data type (<SPAN class="argument">type</SPAN>), number of elements (<SPAN class="argument">cnt</SPAN>), and, if necessary, a fixed point format (<SPAN class="argument">frac</SPAN>). The VAT can use eight vertex formats. The vertex format describes the format of all attributes in a vertex.&nbsp;Use the <A href="GXSetVtxAttrFmt.html"><CODE>GXSetVtxAttrFmt</CODE></A> function to describe an attribute format.</P>
57
58<h2>See Also</h2>
59<p class="reference">
60<a href="GXSetVtxAttrFmtv.html">GXSetVtxAttrFmtv</a>,
61<a href="GXGetVtxAttrFmtv.html">GXGetVtxAttrFmtv</a>,
62<a href="GXSetVtxDescv.html">GXSetVtxDescv</a>,
63<a href="GXGetVtxDescv.html">GXGetVtxDescv</a>,
64<a href="GXSetVtxDesc.html">GXSetVtxDesc</a>,
65<a href="GXBegin.html">GXBegin</a>
66</p>
67
68<H2>Revision History</H2>
69<P>
702006/03/01 Initial version.<br>
71</P>
72
73<hr><p>CONFIDENTIAL</p></body>
74</HTML>