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_SetBG2Control256x16Affine</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">G2S_SetBG2Control256x16Affine <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_SetBG2Control256x16Affine( 21 GXBGScrSize256x16Pltt screenSize, 22 GXBGAreaOver areaOver, 23 GXBGScrBase screenBase, 24 GXBGCharBase charBase 25);</CODE></PRE> 26 </dd> 27</dl><h2>Arguments</h2> 28<TABLE border="1" width="100%"> 29 <TBODY> 30 <TR> 31 <TD width="300"><em><strong><font face="Courier New">screenSize</font></strong></em></TD> 32 <TD width="700">Screen size</TD> 33 </TR> 34 <TR> 35 <TD><em><strong><font face="Courier New">areaOver</font></strong></em></TD> 36 <TD>Option for out-of-area processing</TD> 37 </TR> 38 <TR> 39 <TD><em><strong><font face="Courier New">screenBase</font></strong></em></TD> 40 <TD>Screen base block</TD> 41 </TR> 42 <TR> 43 <TD><em><strong><font face="Courier New">charBase</font></strong></em></TD> 44 <TD>Character base block</TD> 45 </TR> 46 </TBODY> 47</TABLE> 48<h2>Return Values</h2> 49<p>None.</p> 50<H2>Description</H2> 51<P>This function sets the sub 2D Engine's BG2 (in the case of 256-color x16 palette character BG).<BR> <B>Note:</B> When VRAM banks are allocated to the BG Extended palette with the <CODE><A href="../gx/GX_SetBankForSubBGExtPltt.html">GX_SetBankForSubBGExtPltt</A></CODE> function, the BG Extended palette will be referenced. In all other cases, the color palette of the screen data is ignored and the standard palette is referenced. 52</P> 53<TABLE border="1"> 54 <TBODY> 55 <TR> 56 <TD width="30%"><CODE>GX_BG_SCRSIZE_256x16PLTT_128x128</CODE></TD> 57 <TD width="70%">Sets screen size to 128x128 pixels (512 bytes).</TD> 58 </TR> 59 <TR> 60 <TD width="30%"><CODE>GX_BG_SCRSIZE_256x16PLTT_256x256</CODE></TD> 61 <TD width="70%">Sets screen size to 256x256 pixels (2 kilobytes)</TD> 62 </TR> 63 <TR> 64 <TD width="30%"><CODE>GX_BG_SCRSIZE_256x16PLTT_512x512</CODE></TD> 65 <TD width="70%">Sets the screen size to 512x512 pixels (8 kilobytes)</TD> 66 </TR> 67 <TR> 68 <TD width="30%"><CODE>GX_BG_SCRSIZE_256x16PLTT_1024x1024</CODE></TD> 69 <TD width="70%">Sets screen size to 1024x1024 pixels (32 kilobytes).</TD> 70 </TR> 71 </TBODY> 72</TABLE> 73<P></P> 74<TABLE border="1"> 75 <TBODY> 76 <TR> 77 <TD width="30%"><CODE>GX_BG_AREAOVER_XLU</CODE></TD> 78 <TD width="70%">Transparent display of the out-of-area region</TD> 79 </TR> 80 <TR> 81 <TD><CODE>GX_BG_AREAOVER_REPEAT</CODE></TD> 82 <TD width="70%">Wraparound display of the out-of-area region</TD> 83 </TR> 84 </TBODY> 85</TABLE> 86<P></P> 87<TABLE border="1"> 88 <TBODY> 89 <TR> 90 <TD width="30%"><CODE>GX_BG_SCRBASE_0xnnnn</CODE></TD> 91 <TD width="70%">Specifies BG2 screen base block.</TD> 92 </TR> 93 </TBODY> 94</TABLE> 95<TABLE border="1"> 96 <TBODY> 97 <TR> 98 <TD width="30%"><CODE>GX_BG_CHARBASE_0xnnnnn</CODE></TD> 99 <TD width="70%">Specifies the BG2 character base block.</TD> 100 </TR> 101 </TBODY> 102</TABLE> 103<P>The following describes the enumerated type definitions of the arguments.</P> 104<PRE><CODE>typedef enum 105{ 106 GX_BG_SCRSIZE_256x16PLTT_128x128 = 0, 107 GX_BG_SCRSIZE_256x16PLTT_256x256 = 1, 108 GX_BG_SCRSIZE_256x16PLTT_512x512 = 2, 109 GX_BG_SCRSIZE_256x16PLTT_1024x1024 = 3 110} 111GXBGScrSize256x16Pltt; 112 113typedef enum 114{ 115 GX_BG_AREAOVER_XLU = 0, 116 GX_BG_AREAOVER_REPEAT = 1 117} 118GXBGAreaOver; 119 120typedef enum 121{ 122 GX_BG_SCRBASE_0x0000 = 0, 123 GX_BG_SCRBASE_0x0800 = 1, 124 GX_BG_SCRBASE_0x1000 = 2, 125 GX_BG_SCRBASE_0x1800 = 3, 126 GX_BG_SCRBASE_0x2000 = 4, 127 GX_BG_SCRBASE_0x2800 = 5, 128 GX_BG_SCRBASE_0x3000 = 6, 129 GX_BG_SCRBASE_0x3800 = 7, 130 GX_BG_SCRBASE_0x4000 = 8, 131 GX_BG_SCRBASE_0x4800 = 9, 132 GX_BG_SCRBASE_0x5000 = 10, 133 GX_BG_SCRBASE_0x5800 = 11, 134 GX_BG_SCRBASE_0x6000 = 12, 135 GX_BG_SCRBASE_0x6800 = 13, 136 GX_BG_SCRBASE_0x7000 = 14, 137 GX_BG_SCRBASE_0x7800 = 15, 138 GX_BG_SCRBASE_0x8000 = 16, 139 GX_BG_SCRBASE_0x8800 = 17, 140 GX_BG_SCRBASE_0x9000 = 18, 141 GX_BG_SCRBASE_0x9800 = 19, 142 GX_BG_SCRBASE_0xa000 = 20, 143 GX_BG_SCRBASE_0xa800 = 21, 144 GX_BG_SCRBASE_0xb000 = 22, 145 GX_BG_SCRBASE_0xb800 = 23, 146 GX_BG_SCRBASE_0xc000 = 24, 147 GX_BG_SCRBASE_0xc800 = 25, 148 GX_BG_SCRBASE_0xd000 = 26, 149 GX_BG_SCRBASE_0xd800 = 27, 150 GX_BG_SCRBASE_0xe000 = 28, 151 GX_BG_SCRBASE_0xe800 = 29, 152 GX_BG_SCRBASE_0xf000 = 30, 153 GX_BG_SCRBASE_0xf800 = 31 154} 155GXBGScrBase; 156 157typedef enum 158{ 159 GX_BG_CHARBASE_0x00000 = 0, 160 GX_BG_CHARBASE_0x04000 = 1, 161 GX_BG_CHARBASE_0x08000 = 2, 162 GX_BG_CHARBASE_0x0c000 = 3, 163 GX_BG_CHARBASE_0x10000 = 4, 164 GX_BG_CHARBASE_0x14000 = 5, 165 GX_BG_CHARBASE_0x18000 = 6, 166 GX_BG_CHARBASE_0x1c000 = 7, 167 GX_BG_CHARBASE_0x20000 = 8, 168 GX_BG_CHARBASE_0x24000 = 9, 169 GX_BG_CHARBASE_0x28000 = 10, 170 GX_BG_CHARBASE_0x2c000 = 11, 171 GX_BG_CHARBASE_0x30000 = 12, 172 GX_BG_CHARBASE_0x34000 = 13, 173 GX_BG_CHARBASE_0x38000 = 14, 174 GX_BG_CHARBASE_0x3c000 = 15 175} 176GXBGCharBase;</CODE></PRE> 177<h2>See Also</h2> 178<P><A href="G2_GetBG2Control256x16Affine.html">G2S_GetBG2Control256x16Affine</A></P> 179<H2>Revision History</H2> 180<P>2007/01/18 Initial version.</P> 181 182<hr><p>CONFIDENTIAL</p></body> 183</html> 184