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>GXGetViewportv</title> 10</head> 11 12<body> 13 14<h1 align="left">GXGetViewportv</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20void GXGetViewportv( f32* vp ); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>vp</TH> 27<TD>Pointer to a floating point type array. Minimum size is <code>GX_VIEWPORT_SZ</code>.</TD> 28 </tr> 29</TABLE> 30 31<h2>Return Values</h2> 32<p>None.</p> 33 34<H2>Description</H2> 35<P>This function gets the current viewport parameters and places them in array <SPAN class="argument">vp</SPAN>.</P> 36<P>The <A href="GXSetViewportv.html"><CODE>GXSetViewportv</CODE></A> function sets the viewport in vector form. The order of parameters in <SPAN class="argument">vp</SPAN> corresponds to the order of parameters in the <A href="GXSetViewport.html"><CODE>GXSetViewport</CODE></A> function. The array returned by <a href="GXGetViewportv.html"><code>GXGetViewportv</code></a> can be supplied as an argument to <a href="GXProject.html"><code>GXProject</code></a>.</P> 37 38<H2>Examples</H2> 39<P><code>f32 vp[GX_VIEWPORT_SZ];<br> <br> <a href="GXGetViewportv.html">GXGetViewPortv</a>( vp );<br> vp[2] = 512.0f; // change width to 512<br> <a href="GXSetViewportv.html">GXSetViewportv</a>( vp );</code></P> 40<P>The viewport is typically set using parameters derived from the current render mode. For more information, see <a href="../Framebuffer/RenderMode.html"><code>Render Modes</code></a>.</P> 41 42<h2>See Also</h2> 43<p class="reference"> 44<a href="../Culling/GXSetScissor.html">GXSetScissor</a>, 45<a href="../../mtx/Projection/MTXFrustum.html">MTXFrustum</a>, 46<a href="../Framebuffer/RenderMode.html">Render Modes</a> 47</p> 48 49<H2>Revision History</H2> 50<P> 512006/03/01 Initial version.<br> 52</P> 53 54<hr><p>CONFIDENTIAL</p></body> 55</HTML>