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>Returns the left-most screen coordinate, in pixels.</TD> 34 </tr> 35 <tr> 36<TH>yOrig</TH> 37<TD>Returns top-most screen coordinate, in pixels.</TD> 38 </tr> 39 <tr> 40<TH>wd</TH> 41<TD>Returns the viewport width, in pixels.</TD> 42 </tr> 43 <tr> 44<TH>ht</TH> 45<TD>Returns the viewport height, in pixels.</TD> 46 </tr> 47 <tr> 48<TH>nearZ</TH> 49<TD>Returns the floating point value for near depth scale. Normalized range is 0.0 - 1.0.</TD> 50 </tr> 51 <tr> 52<TH>farZ</TH> 53<TD>Returns floating point value for far depth scale. Normalized range is 0.0 - 1.0.</TD> 54 </tr> 55</TABLE> 56 57<h2>Return Values</h2> 58<p>None.</p> 59 60<H2>Description</H2> 61<P>This function 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 class="reference"> 65<a href="../Culling/GXSetScissor.html">GXSetScissor</a>, 66<a href="../../mtx/Projection/MTXFrustum.html">MTXFrustum</a>, 67<a href="../Framebuffer/RenderMode.html">Render Modes</a> 68</p> 69 70<H2>Revision History</H2> 71<P> 722006/03/01 Initial version.<br> 73</P> 74 75<hr><p>CONFIDENTIAL</p></body> 76</HTML>