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="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>GX_SetBGScrOffset</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">GX_SetBGScrOffset <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1> 15<H2>Syntax</H2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/gx/gx.h></CODE><BR> <BR> <CODE>void GX_SetBGScrOffset(GXBGScrOffset offset);</CODE></dd> 20</dl><h2>Arguments</h2> 21 22<table border="1" width="100%"> 23 <tr> 24<td width="13%"><SPAN class="argument">offset</SPAN></td> 25<td width="87%">BG screen data offset value</td> 26 </tr> 27 </table> 28<h2>Return Values</h2> 29<p>None.</p> 30<H2>Description</H2> 31<P>Selects an offset to apply to the address where the Main 2D Engine BG screen data is stored. The sum of the BG screen base offset set with this function and the screen base block set for each BG is the base address in the BG-VRAM space.<BR> 32</P> 33<TABLE border="1"> 34 <TBODY> 35 <TR> 36<TD width="30%"><CODE>GX_BGSCROFFSET_0x00000</CODE></TD> 37<TD>Sets <code>0x00000</code> as the offset.</TD> 38 </TR> 39 <TR> 40<TD><CODE>GX_BGSCROFFSET_0x10000</CODE></TD> 41<TD>Sets <code>0x10000</code> as the offset.</TD> 42 </TR> 43 <TR> 44<TD><CODE>GX_BGSCROFFSET_0x20000</CODE></TD> 45<TD>Sets <code>0x20000</code> as the offset.</TD> 46 </TR> 47 <TR> 48<TD><CODE>GX_BGSCROFFSET_0x30000</CODE></TD> 49<TD>Sets <code>0x30000</code> as the offset.</TD> 50 </TR> 51 <TR> 52<TD><CODE>GX_BGSCROFFSET_0x40000</CODE></TD> 53<TD>Sets <code>0x40000</code> as the offset.</TD> 54 </TR> 55 <TR> 56<TD><CODE>GX_BGSCROFFSET_0x50000</CODE></TD> 57<TD>Sets <code>0x50000</code> as the offset.</TD> 58 </TR> 59 <TR> 60<TD><CODE>GX_BGSCROFFSET_0x60000</CODE></TD> 61<TD>Sets <code>0x60000</code> as the offset.</TD> 62 </TR> 63 <TR> 64<TD><CODE>GX_BGSCROFFSET_0x70000</CODE></TD> 65<TD>Sets <code>0x70000</code> as the offset.</TD> 66 </TR> 67 </TBODY> 68</TABLE> 69<P>The following indicates the type definition for <code>GXBGScrOffset</code> format.</P> 70<PRE><CODE>typedef enum 71{ 72 GX_BGSCROFFSET_0x00000 = 0x00, 73 GX_BGSCROFFSET_0x10000 = 0x01, 74 GX_BGSCROFFSET_0x20000 = 0x02, 75 GX_BGSCROFFSET_0x30000 = 0x03, 76 GX_BGSCROFFSET_0x40000 = 0x04, 77 GX_BGSCROFFSET_0x50000 = 0x05, 78 GX_BGSCROFFSET_0x60000 = 0x06, 79 GX_BGSCROFFSET_0x70000 = 0x07 80} 81GXBGScrOffset;</CODE></PRE> 82<h2>See Also</h2> 83<P><A href="../g2/G2_SetBG0Control.html"><CODE>G2_SetBG0Control</CODE></A><BR> <A href="../g2/G2_SetBG1Control.html"><CODE>G2_SetBG1Control</CODE></A><BR> <A href="../g2/G2_SetBG2ControlText.html"><CODE>G2_SetBG2ControlText</CODE></A><BR> <A href="../g2/G2_SetBG2ControlAffine.html"><CODE>G2_SetBG2ControlAffine</CODE></A><BR> <A href="../g2/G2_SetBG2Control256Bmp.html"><CODE>G2_SetBG2Control256Bmp</CODE></A><BR> <A href="../g2/G2_SetBG2ControlDCBmp.html"><CODE>G2_SetBG2ControlDCBmp</CODE></A><BR> <A href="../g2/G2_SetBG3ControlText.html"><CODE>G2_SetBG3ControlText</CODE></A><BR> <A href="../g2/G2_SetBG3ControlAffine.html"><CODE>G2_SetBG3ControlAffine</CODE></A><BR> <A href="../g2/G2_SetBG3Control256Bmp.html"><CODE>G2_SetBG3Control256Bmp</CODE></A><BR> <A href="../g2/G2_SetBG3ControlDCBmp.html"><CODE>G2_SetBG3ControlDCBmp</CODE></A></P> 84<H2>Revision History</H2> 85<P>Version 2004/02/09</P> 86<UL> 87<LI>Revised <B>See Also</B>. 88</UL> 89<P>2004/01/19 Initial version.</P> 90<hr><p>CONFIDENTIAL</p></body> 91</html> 92