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>C Specification</h2> 17 18<dl> 19<dd><pre><CODE>#include <revolution/gx.h></CODE></pre> 20 </dd> 21<dd><pre><CODE>void GXGetViewport( 22f32* xOrig, 23f32* yOrig, 24f32* wd, 25f32* ht, 26f32* nearZ, 27f32* farZ );</CODE></pre> 28 </dd> 29</dl> 30 31<h2>Arguments</h2> 32<TABLE border="1" cellpadding="3" cellspacing="0.1"> 33 <tr> 34<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>xOrig</font></strong></em></TD> 35<TD width="520">Returns the left-most screen coordinate, in pixels.</TD> 36 </tr> 37 <tr> 38<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>yOrig</font></strong></em></TD> 39<TD width="520">Returns top-most screen coordinate, in pixels.</TD> 40 </tr> 41 <tr> 42<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>wd</font></strong></em></TD> 43<TD width="520">Returns the viewport width, in pixels.</TD> 44 </tr> 45 <tr> 46<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>ht</font></strong></em></TD> 47<TD width="520">Returns the viewport height, in pixels.</TD> 48 </tr> 49 <tr> 50<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>nearZ</font></strong></em></TD> 51<TD width="520">Returns the floating point value for near depth scale. Normalized range is 0.0 - 1.0.</TD> 52 </tr> 53 <tr> 54<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>farZ</font></strong></em></TD> 55<TD width="520">Returns floating point value for far depth scale. Normalized range is 0.0 - 1.0.</TD> 56 </tr> 57</TABLE> 58<h2>Return Values</h2> 59 60<p>None.</p> 61<H2>Description</H2> 62<P>This function returns the current viewport rectangle in screen coordinates. The viewport is set using <a href="GXSetViewport.html"><code>GXSetViewport</code></a>.</P> 63 64<h2>See Also</h2> 65 66<p><a href="../Culling/GXSetScissor.html">GXSetScissor</a><br> <a href="../../mtx/Projection/MTXFrustum.html">MTXFrustum</a><br> <a href="../Framebuffer/RenderMode.html">Render Modes</a></p> 67<H2>Revision History</H2> 68<P>03/01/2006 Initial version.</P> 69</BODY> 70</HTML>