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*_GetBG2ControlDCBmp</title> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</head> 10<body> 11<h1 align="left">G2*_GetBG2ControlDCBmp <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 GXBg23ControlDCBmp G2_GetBG2ControlDCBmp( void );</CODE> 17<CODE>static inline GXBg23ControlDCBmp G2S_GetBG2ControlDCBmp( 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 Direct color bitmap BG for Affine Expanded BG, this gets the settings for BG2 as the <code>GXBg23ControlDCBmp</code> structure. See the <CODE><A href="G2_SetBG2ControlDCBmp.html">G2_SetBG2ControlDCBmp</A></CODE> function for more information on each member.<BR><BR> To use this function, BG2 must be set to Direct color bitmap BG.<BR> <BR> Use the <CODE>G2_GetBG2ControlDCBmp</CODE> function to get the settings for the main 2D engine and the <CODE>G2S_GetBG2ControlDCBmp</CODE> function to get the settings for the sub 2D engine. The following is the definition for <code>GXBg23ControlDCBmp</code>:</P> 25<PRE>typedef union 26{ 27 u16 raw; 28 struct 29 { 30 u16 priority :2; 31 u16 _reserve1 :4; 32 u16 mosaic :1; 33 u16 _reserve2 :1; 34 u16 screenBase :5; 35 u16 areaOver :1; 36 u16 screenSize :2; 37 }; 38} 39GXBg23ControlDCBmp;</PRE> 40<h2>See Also</h2> 41<P><code><a href="G2_SetBG2ControlDCBmp.html">G2_SetBG2ControlDCBmp</a><BR> <a href="G2S_SetBG2ControlDCBmp.html">G2S_SetBG2ControlDCBmp</a></code></P> 42<H2>Revision History</H2> 43<P>2004/12/24 Initial version.</P> 44<hr><p>CONFIDENTIAL</p></body> 45</html> 46