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>GX_SetBankForSubOBJ</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">GX_SetBankForSubOBJ <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_vramcnt.h></CODE><BR> 20 <BR> 21 <CODE>void GX_SetBankForSubOBJ(GXVRamSubOBJ obj);</CODE></dd> 22</dl><h2>Arguments</h2> 23 24<table border="1" width="100%"> 25 <tr> 26 <td width="13%"><em><strong><font face="Courier New">obj</font></strong></em></td> 27 <td width="87%">Specifies a VRAM bank to allocate to the sub 2D Engine's OBJ</td> 28 </tr> 29 </table> 30<h2>Return Values</h2> 31<p>None.</p> 32<H2>Description</H2> 33<P>This function allocates the specified VRAM bank to the sub 2D Engine's OBJ. If the specified VRAM bank is either disabled or allocated to LCDC, that VRAM bank is allocated to the sub 2D Engine's OBJ. 34</P> 35<TABLE border="1"> 36 <TBODY> 37 <TR> 38 <TD><CODE>GX_VRAM_SUB_OBJ_NONE</CODE></TD> 39 <TD>VRAM is not allocated to OBJ.</TD> 40 </TR> 41 <TR> 42 <TD><CODE>GX_VRAM_SUB_OBJ_128_D</CODE></TD> 43 <TD>128 kilobytes of OBJ are reserved. VRAM-D is allocated.</TD> 44 </TR> 45 <TR> 46 <TD><CODE>GX_VRAM_SUB_OBJ_16_I</CODE></TD> 47 <TD>16 kilobytes of OBJ are reserved. VRAM-I is allocated.</TD> 48 </TR> 49 </TBODY> 50</TABLE> 51<P>The following is the type definition for <CODE>GXVRamSubOBJ</CODE> types.</P> 52<PRE><CODE>typedef enum 53{ 54 GX_VRAM_SUB_OBJ_NONE = 0x0000, 55 GX_VRAM_SUB_OBJ_128_D = GX_VRAM_D, 56 GX_VRAM_SUB_OBJ_16_I = GX_VRAM_I 57} 58GXVRamSubOBJ;</PRE> 59<h2>See Also</h2> 60<P><A href="GX_GetBankForSubOBJ.html"><code>GX_GetBankForSubOBJ</code></A>, <A href="GX_ResetBankForSubOBJ.html"><code>GX_ResetBankForSubOBJ</code></A>, <A href="GX_DisableBankForSubOBJ.html"><code>GX_DisableBankForSubOBJ</code></A>, <a href="GX_GetSizeOfSubOBJ.html"><code>GX_GetSizeOfSubOBJ</code></a></P> 61<H2>Revision History</H2> 62<P>2004/02/09 Initial version.</P> 63<hr><p>CONFIDENTIAL</p></body> 64</html> 65