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_SetBankForTexPltt</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">GX_SetBankForTexPltt <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_SetBankForTexPltt(GXVRamTexPltt texPltt);</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">texPltt</font></strong></em></td> 27 <td width="87%">Specifies a VRAM bank to allocate to the texture palette</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 texture palette. If the specified VRAM bank is either disabled or allocated to LCDC, this allocates the VRAM bank to the texture palette. 34</P> 35<TABLE border="1"> 36 <TBODY> 37 <TR> 38 <TD><CODE>GX_VRAM_TEXPLTT_NONE</CODE></TD> 39 <TD>A VRAM bank is not allocated to the texture palette.</TD> 40 </TR> 41 <TR> 42 <TD><CODE>GX_VRAM_TEXPLTT_0_F</CODE></TD> 43 <TD>Slot 0 of the texture palette is reserved. VRAM-F is allocated.</TD> 44 </TR> 45 <TR> 46 <TD><CODE>GX_VRAM_TEXPLTT_0_G</CODE></TD> 47 <TD>Slot 0 of the texture palette is reserved. VRAM-G is allocated.</TD> 48 </TR> 49 <TR> 50 <TD><CODE>GX_VRAM_TEXPLTT_01_FG</CODE></TD> 51 <TD>Slot 0,1 of the texture palette is reserved. VRAM-F and -G are allocated.</TD> 52 </TR> 53 <TR> 54 <TD><CODE>GX_VRAM_TEXPLTT_0123_E</CODE></TD> 55 <TD>Slots 0, 1, 2, and 3 of the texture palette are reserved. VRAM-E is allocated.</TD> 56 </TR> 57 <TR> 58 <TD><CODE>GX_VRAM_TEXPLTT_01234_EF</CODE></TD> 59 <TD>Slots 0, 1, 2, 3, and 4 of the texture palette are reserved. VRAM-E and -F are allocated.</TD> 60 </TR> 61 <TR> 62 <TD><CODE>GX_VRAM_TEXPLTT_012345_EFG</CODE></TD> 63 <TD>Slots 0, 1, 2, 3, 4, and 5 of the texture palette are reserved. VRAM-E, -F, and -G are allocated.</TD> 64 </TR> 65 </TBODY> 66</TABLE> 67<P>The following is the type definition for <CODE>GXVRamTexPltt</CODE> types.</P> 68<PRE><CODE>typedef enum 69{ 70 GX_VRAM_TEXPLTT_NONE = 0x0000, 71 GX_VRAM_TEXPLTT_0_F = GX_VRAM_F, // TexturePltt 0 72 GX_VRAM_TEXPLTT_0_G = GX_VRAM_G, // TexturePltt 0 73 GX_VRAM_TEXPLTT_01_FG = GX_VRAM_F | GX_VRAM_G, // TexturePltt 01 74 GX_VRAM_TEXPLTT_0123_E = GX_VRAM_E, // TexturePltt 0-3 75 GX_VRAM_TEXPLTT_01234_EF = GX_VRAM_E | GX_VRAM_F, // TexturePltt 0-3,4 76 GX_VRAM_TEXPLTT_012345_EFG = GX_VRAM_E | GX_VRAM_F | GX_VRAM_G // TexturePltt 0-3,45 77} 78GXVRamTexPltt;</CODE></PRE> 79<h2>See Also</h2> 80<P><A href="GX_GetBankForTexPltt.html"><code>GX_GetBankForTexPltt</code></A>, <A href="GX_ResetBankForTexPltt.html"><code>GX_ResetBankForTexPltt</code></A>, <A href="GX_DisableBankForTexPltt.html"><code>GX_DisableBankForTexPltt</code></A>, <a href="GX_GetSizeOfTexPltt.html"><code>GX_GetSizeOfTexPltt</code></a></P> 81<H2>Revision History</H2> 82<P>2004/01/19 Initial version.</P> 83<hr><p>CONFIDENTIAL</p></body> 84</html> 85