1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="Microsoft FrontPage 5.0">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>GXGetPixelFmt</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">GXGetPixelFmt</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/gx.h&gt;
16
17void GXGetPixelFmt(
18    <A href="../Enumerated_Types/GXPixelFmt.html">GXPixelFmt</A>    *pix_fmt,
19    <A href="../Enumerated_Types/GXZFmt16.html">GXZFmt16</A>      *z_fmt );
20</pre></dd></dl>
21
22<H2>Arguments</H2>
23<TABLE class="arguments" border="1" >
24  <TBODY>
25    <TR>
26      <TH>pix_fmt</TH>
27      <TD>Pointer used to return the pixel format. Values are as follows.<BR>
28      <TABLE class="arguments" border="1" >
29          <tr>
30            <TD bgcolor="#C0C0C0">Name</TD>
31            <TD bgcolor="#C0C0C0">Pixel Format</TD>
32          </tr>
33          <tr>
34            <TH>GX_PF_RGB8_Z24</TH>
35            <TD>No antialiasing. 8-bit for each RGB value, 24-bit Z value.</TD>
36          </tr>
37          <tr>
38            <TH>GX_PF_RGBA6_Z24</TH>
39            <TD>No antialiasing. 6-bit for each RGBA value, 24-bit Z value.</TD>
40          </tr>
41          <tr>
42            <TH>GX_PF_RGB565_Z16</TH>
43            <TD>Antialiasing. RGB565, 16-bit Z value</TD>
44          </tr>
45      </TABLE>
46       </TD></TR>
47    <TR>
48      <TH>z_fmt</TH>
49      <TD>Pointer used to return the compression type for the 16-bit Z <A href="../Enumerated_Types/GXZFmt16.html">format</A>. Values are as follows.<BR>
50      <TABLE class="arguments" border="1" >
51          <tr>
52            <TD bgcolor="#C0C0C0">Name</TD>
53            <TD bgcolor="#C0C0C0">Z format</TD>
54          </tr>
55          <tr>
56            <TH>GX_ZC_LINEAR</TH>
57            <TD>Linear 16 bit</TD>
58          </tr>
59          <tr>
60            <TH>GX_ZC_NEAR</TH>
61            <TD>Compressed format for smaller far/near ratio</TD>
62          </tr>
63          <tr>
64            <TH>GX_ZC_MID</TH>
65            <TD>Compressed format for medium far/near ratio</TD>
66          </tr>
67          <tr>
68            <TH>GX_ZC_FAR</TH>
69            <TD>Compressed format for large far/near ratio</TD>
70          </tr>
71      </TABLE>
72
73     </TD></TR>
74  </TBODY>
75</TABLE>
76
77<H2>Return Values</H2>
78<P>None.</P>
79
80<H2>Description</H2>
81<P>Gets the pixel format and antialiasing (AA) mode of the EFB inside the graphics processor as set by the <A href="GXSetPixelFmt.html"><CODE>GXSetPixelFmt</CODE></A> function.</P>
82
83<H2>See Also</H2>
84<P>
85<A href="GXSetPixelFmt.html"><CODE>GXSetPixelFmt</CODE></A>
86</P>
87
88<H2>Revision History</H2>
89<P>
902009/01/05 Initial version.
91</P>
92
93<hr><p>CONFIDENTIAL</p></body>
94</HTML>