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>GXGetViewport</title> 10</head> 11 12<body> 13 14<h1 align="left">GXGetViewport</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20void GXGetViewport( 21 f32* xOrig, 22 f32* yOrig, 23 f32* wd, 24 f32* ht, 25 f32* nearZ, 26 f32* farZ ); 27</pre></dd></dl> 28 29<h2>Arguments</h2> 30<TABLE class="arguments" border="1" > 31 <tr> 32<TH>xOrig</TH> 33<TD>Leftmost screen coordinate, in pixels.</TD> 34 </tr> 35 <tr> 36<TH>yOrig</TH> 37<TD>Topmost screen coordinate, in pixels.</TD> 38 </tr> 39 <tr> 40<TH>wd</TH> 41<TD>Viewport width, in pixels.</TD> 42 </tr> 43 <tr> 44<TH>ht</TH> 45<TD>Viewport height, in pixels.</TD> 46 </tr> 47 <tr> 48<TH>nearZ</TH> 49<TD>Floating-point value for near depth scale.</TD> 50 </tr> 51 <tr> 52<TH>farZ</TH> 53<TD>Floating-point value for far depth scale.</TD> 54 </tr> 55</TABLE> 56 57<h2>Return Values</h2> 58<p>None.</p> 59 60<H2>Description</H2> 61<P>Returns the current viewport rectangle in screen coordinates. The viewport is set using the <A href="GXSetViewport.html"><CODE>GXSetViewport</CODE></A> function.</P> 62 63<h2>See Also</h2> 64<P> 65<A href="../Culling/GXSetScissor.html"><CODE>GXSetScissor</CODE></A><BR> <A href="../../mtx/Projection/MTXFrustum.html"><CODE>MTXFrustum</CODE></A><BR> <a href="../Framebuffer/RenderMode.html">Render Modes</a> 66</p> 67 68<H2>Revision History</H2> 69<P> 702008/12/04 Revised the description of depth scale.<br>2006/03/01 Initial version. 71</P> 72 73<hr><p>CONFIDENTIAL</p></body> 74</HTML>