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>C Specification</h2> 17 18<dl> 19<dd><pre><CODE>#include <revolution/gx.h></CODE></pre></dd> 20<dd><pre><CODE>void GXGetVtxAttrFmt( 21<a href="../Enumerated_Types/GXVtxFmt.html">GXVtxFmt</a> <em>vtxfmt</em>, 22<a href="../Enumerated_Types/GXAttr.html">GXAttr</a> <em>attr</em>, 23<a href="../Enumerated_Types/GXCompCnt.html">GXCompCnt</a>* <em> cnt</em>, 24<a href="../Enumerated_Types/GXCompType.html">GXCompType</a>* <em> type</em>, 25u8* <em> frac</em>)</CODE></pre></dd> 26</dl> 27<h2>Arguments</h2> 28<TABLE border="1" cellspacing="0.1" cellpadding="3"> 29 <tr> 30<TD width="120" valign="top" 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" valign="top" bgcolor="#ffffe8"><em><strong><CODE>attr</font></strong></em></TD> 35<TD width="520">Specifies the attribute name. 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> 36 </tr> 37 <tr> 38<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>cnt</font></strong></em></TD> 39<TD width="520">returns the component count.</TD> 40 </tr> 41 <tr> 42<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>type</font></strong></em></TD> 43<TD width="520">returns the component type.</TD> 44 </tr> 45 <tr> 46<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>frac</font></strong></em></TD> 47<TD width="520">returns the fixed point scale value.</TD> 48 </tr> 49</TABLE> 50<h2>Return Values</h2> 51 52<p>None.</p> 53<H2>Description</H2> 54<P>This function returns the attribute format (<CODE><STRONG><EM>attr</EM></STRONG></CODE>) of an attribute in the vertex attribute format table (VAT). Each attribute format describes the data type (<code><em><strong>type</strong></em></code>), number of elements (<code><em><strong>cnt</strong></em></code>), and, if necessary, a fixed point format (<code><em><strong>frac</strong></em></code>). The VAT can use eight vertex formats. The vertex format describes the format of all attributes in a vertex. Use <A href="GXSetVtxAttrFmt.html"><CODE>GXSetVtxAttrFmt</CODE></A> to describe an attribute format.</P> 55 56<h2>See Also</h2> 57 58<p><a href="GXSetVtxAttrFmtv.html">GXSetVtxAttrFmtv</a><br> <a href="GXGetVtxAttrFmtv.html">GXGetVtxAttrFmtv</a><br> <a href="GXSetVtxDescv.html">GXSetVtxDescv</a><br> <a href="GXGetVtxDescv.html">GXGetVtxDescv</a><br> <a href="GXSetVtxDesc.html">GXSetVtxDesc</a><br> <a href="GXBegin.html">GXBegin</a></p> 59<H2>Revision History</H2> 60<P>03/01/2006 Initial version.</P> 61</BODY> 62</HTML>