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*_GetBG2Control256x16Affine</title> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</head> 10<body> 11<h1 align="left">G2*_GetBG2Control256x16Affine <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 <nitro/gx/gx_bgcnt.h></CODE><BR> 16 <PRE><CODE>static inline GXBg23Control256x16Affine G2_GetBG2Control256x16Affine( void );</CODE> 17<CODE>static inline GXBg23Control256x16Affine G2S_GetBG2Control256x16Affine( void );</CODE></PRE> 18 </dd> 19</dl><h2>Arguments</h2> 20<P>None.</P> 21<h2>Return Values</h2> 22<p>The settings for BG2.</p> 23<H2>Description</H2> 24<P>When BG2 has been set to 256-color x 16 palette Character BG for Affine Extended BG, this gets the settings for BG2 as the <code>GXBg23Control256x16Affine</code> structure.<BR> See the <CODE><A href="G2_SetBG2Control256x16Affine.html">G2_SetBG2Control256x16Affine</A></CODE> function for more information on each member.<BR><BR> To use this function, BG2 must be set to 256-color x 16 palette Character BG.<BR> <BR> Use the <CODE>G2_GetBG2Control256x16Affine</CODE> function to get the settings for the main 2D engine and the <CODE>G2S_GetBG2Control256x16Affine</CODE> function to get the settings for the sub 2D engine. The following is the definition for <code>GXBg23Control256x16Affine</code>:</P> 25<PRE>typedef union 26{ 27 u16 raw; 28 struct 29 { 30 u16 priority :2; 31 u16 charBase:4; 32 u16 mosaic :1; 33 u16 _reserve :1; 34 u16 screenBase :5; 35 u16 areaOver :1; 36 u16 screenSize :2; 37 }; 38} 39GXBg23Control256x16Affine; 40</PRE> 41<h2>See Also</h2> 42<P><A href="G2_SetBG2Control256x16Affine.html">G2_SetBG2Control256x16Affine</A><BR> <A href="G2S_SetBG2Control256x16Affine.html">G2S_SetBG2Control256x16Affine</A></P> 43<H2>Revision History</H2> 44<P>2007/01/18 Initial version.</P> 45<hr><p>CONFIDENTIAL</p></body> 46</html> 47