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 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>G2S_SetBG2Control256Bmp</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">G2S_SetBG2Control256Bmp <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_bgcnt.h></CODE><BR> 20 <PRE><CODE>void G2S_SetBG2Control256Bmp( 21 GXBGScrSize256Bmp screenSize, 22 GXBGAreaOver areaOver, 23 GXBGBmpScrBase screenBase 24);</CODE></PRE> 25 </dd> 26</dl><h2>Arguments</h2> 27<TABLE border="1" width="100%"> 28 <TBODY> 29 <TR> 30 <TD width="300"><em><strong><font face="Courier New">screenSize</font></strong></em></TD> 31 <TD width="700">Screen Size</TD> 32 </TR> 33 <TR> 34 <TD><em><strong><font face="Courier New">areaOver</font></strong></em></TD> 35 <TD>Option for out-of-area processing</TD> 36 </TR> 37 <TR> 38 <TD><em><strong><font face="Courier New">screenBase</font></strong></em></TD> 39 <TD>Screen base block</TD> 40 </TR> 41 </TBODY> 42</TABLE> 43<h2>Return Values</h2> 44<p>None.</p> 45<H2>Description</H2> 46<P>This function sets the sub 2D Engine's BG2 (in the case of 256-color bitmapped BG). 47</P> 48<TABLE border="1"> 49 <TBODY> 50 <TR> 51 <TD width="30%"><CODE>GX_BG_SCRSIZE_256BMP_128x128</CODE></TD> 52 <TD width="70%">Sets screen size to 128x128 pixels (16 kilobytes).</TD> 53 </TR> 54 <TR> 55 <TD width="30%"><CODE>GX_BG_SCRSIZE_256BMP_256x256</CODE></TD> 56 <TD width="70%">Sets screen size to 256x256 pixels (64 kilobytes).</TD> 57 </TR> 58 <TR> 59 <TD width="30%"><CODE>GX_BG_SCRSIZE_256BMP_512x256</CODE></TD> 60 <TD width="70%">Sets screen size to 512x256 pixels (128 kilobytes).</TD> 61 </TR> 62 </TBODY> 63</TABLE> 64<P></P> 65<TABLE border="1"> 66 <TBODY> 67 <TR> 68 <TD width="30%"><CODE>GX_BG_AREAOVER_XLU</CODE></TD> 69 <TD width="70%">Transparent display of the out-of-area region</TD> 70 </TR> 71 <TR> 72 <TD width="30%"><CODE>GX_BG_AREAOVER_REPEAT</CODE></TD> 73 <TD width="70%">Wraparound display of the out-of-area region</TD> 74 </TR> 75 </TBODY> 76</TABLE> 77<P></P> 78<TABLE border="1"> 79 <TBODY> 80 <TR> 81 <TD width="30%"><CODE>GX_BG_BMPSCRBASE_0xnnnnn</CODE></TD> 82 <TD width="70%">Specifies BG2 screen base block.</TD> 83 </TR> 84 </TBODY> 85</TABLE> 86<P>The following describes the enumerated type definitions of the arguments.</P> 87<PRE><CODE>typedef enum 88{ 89 GX_BG_SCRSIZE_256BMP_128x128 = 0, 90 GX_BG_SCRSIZE_256BMP_256x256 = 1, 91 GX_BG_SCRSIZE_256BMP_512x256 = 2, 92 GX_BG_SCRSIZE_256BMP_512x512 = 3 93} 94GXBGScrSize256Bmp; 95 96typedef enum 97{ 98 GX_BG_AREAOVER_XLU = 0, 99 GX_BG_AREAOVER_REPEAT = 1 100} 101GXBGAreaOver; 102 103typedef enum 104{ 105 GX_BG_BMPSCRBASE_0x00000 = 0, 106 GX_BG_BMPSCRBASE_0x04000 = 1, 107 GX_BG_BMPSCRBASE_0x08000 = 2, 108 GX_BG_BMPSCRBASE_0x0c000 = 3, 109 GX_BG_BMPSCRBASE_0x10000 = 4, 110 GX_BG_BMPSCRBASE_0x14000 = 5, 111 GX_BG_BMPSCRBASE_0x18000 = 6, 112 GX_BG_BMPSCRBASE_0x1c000 = 7, 113 GX_BG_BMPSCRBASE_0x20000 = 8, 114 GX_BG_BMPSCRBASE_0x24000 = 9, 115 GX_BG_BMPSCRBASE_0x28000 = 10, 116 GX_BG_BMPSCRBASE_0x2c000 = 11, 117 GX_BG_BMPSCRBASE_0x30000 = 12, 118 GX_BG_BMPSCRBASE_0x34000 = 13, 119 GX_BG_BMPSCRBASE_0x38000 = 14, 120 GX_BG_BMPSCRBASE_0x3c000 = 15, 121 GX_BG_BMPSCRBASE_0x40000 = 16, 122 GX_BG_BMPSCRBASE_0x44000 = 17, 123 GX_BG_BMPSCRBASE_0x48000 = 18, 124 GX_BG_BMPSCRBASE_0x4c000 = 19, 125 GX_BG_BMPSCRBASE_0x50000 = 20, 126 GX_BG_BMPSCRBASE_0x54000 = 21, 127 GX_BG_BMPSCRBASE_0x58000 = 22, 128 GX_BG_BMPSCRBASE_0x5c000 = 23, 129 GX_BG_BMPSCRBASE_0x60000 = 24, 130 GX_BG_BMPSCRBASE_0x64000 = 25, 131 GX_BG_BMPSCRBASE_0x68000 = 26, 132 GX_BG_BMPSCRBASE_0x6c000 = 27, 133 GX_BG_BMPSCRBASE_0x70000 = 28, 134 GX_BG_BMPSCRBASE_0x74000 = 29, 135 GX_BG_BMPSCRBASE_0x78000 = 30, 136 GX_BG_BMPSCRBASE_0x7c000 = 31 137} 138GXBGBmpScrBase;</CODE></PRE> 139<h2>See Also</h2> 140<P><A href="G2_GetBG2Control256Bmp.html">G2S_GetBG2Control256Bmp</A></P> 141<H2>Revision History</H2> 142<P>2004/02/09 Initial version.</P> 143<hr><p>CONFIDENTIAL</p></body> 144</html> 145