1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<title>G2*_GetBG0Control</title>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</head>
10<body>
11<h1 align="left">G2*_GetBG0Control <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<dl>
14  <dd>
15<CODE>#include &lt;nitro/gx/gx_bgcnt.h&gt;</CODE><BR>
16  <PRE><CODE>static inline GXBg01Control G2_GetBG0Control( void );</CODE>
17<CODE>static inline GXBg01Control G2S_GetBG0Control( void );</CODE></PRE>
18  </dd>
19  <dd>
20  <PRE>
21</PRE>
22  </dd>
23</dl><h2>Arguments</h2>
24<P>None.</P>
25<h2>Return Values</h2>
26<p>Gets the settings for BG0 (for 2D).</p>
27<H2>Description</H2>
28<P>Gets the display settings for BG0 (for 2D) as the structure <code>GXBg01Control</code>. See the <CODE><A href="G2_SetBG0Control.html">G2_SetBG0Control</A></CODE> function for more information on each member.<BR><BR> Use the <CODE>G2_GetBG0Control</CODE> function to get the settings for the main 2D engine and the <CODE>G2S_GetBG0Control</CODE> function to get the settings for the sub 2D engine. The following is the definition for <code>GXBg01Control</code>:</P>
29<PRE>typedef union
30{
31    u16 raw;
32    struct
33    {
34        u16 priority:2;
35        u16 charBase:4;
36        u16 mosaic:1;
37        u16 colorMode:1;
38        u16 screenBase:5;
39        u16 bgExtPltt:1;
40        u16 screenSize:2;
41    };
42}
43GXBg01Control;
44</PRE>
45<h2>See Also</h2>
46<P><code><a href="G2_SetBG0Control.html">G2_SetBG0Control</a><BR> <a  href="G2S_SetBG0Control.html">G2S_SetBG0Control</a></code></P>
47<H2>Revision History</H2>
48<P>2004/12/24 Initial version.</P>
49<hr><p>CONFIDENTIAL</p></body>
50</html>
51