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 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>G2_SetOBJMode</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">G2_SetOBJMode <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<PRE> 20<CODE>#include <nitro/gx/g2_oam.h></CODE><BR> 21<CODE>void G2_SetOBJMode(<A href="../gx/GXOamAttr.html">GXOamAttr</A> * oam, GXOamMode mode, int cParam);</CODE></PRE></dd> 22</dl><h2>Arguments</h2> 23<TABLE border="1" width="100%"> 24 <TBODY> 25 <TR> 26 <TD width="149"><em><strong><font face="Courier New">oam</font></strong></em></TD> 27 <TD width="706">Pointer to the location storing the OAM data</TD> 28 </TR> 29 <TR> 30 <TD><em><strong><font face="Courier New">mode</font></strong></em></TD> 31 <TD>OBJ mode</TD> 32 </TR> 33 <TR> 34 <TD><em><strong><font face="Courier New">cParam</font></strong></em></TD> 35 <TD>Color parameter</TD> 36 </TR> 37 </TBODY> 38</TABLE> 39<h2>Return Values</h2> 40<p>None.</p> 41<H2>Description</H2> 42<P>*This function changes the OBJ mode and color parameters for the OAM data stored in *<em><strong><code>oam</code></strong></em>. <em><strong><code>cParam</code></strong></em> specifies a single palette from the 16 palettes when OBJ mode is not set to bitmap OBJ. In this case, the OBJ Extended palette is not loaded and the settings when color mode is set to 256-color mode are ignored. When OBJ mode is set to bitmap OBJ, the value is the α-value of OBJ. For type <code>GXOamMode</code>, refer to <code><a href="G2_SetOBJAttr.html">G2_SetOBJAttr</a></code>.</P> 43 44 45<h2>See Also</h2> 46<P><A href="G2_SetOBJAttr.html">G2_SetOBJAttr</A></P> 47<H2>Revision History</H2> 48<P>2004/01/19 Initial version.</P> 49<hr><p>CONFIDENTIAL</p></body> 50</html> 51