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="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>GXPackedRGB5A3</title> 10</head> 11 12<body> 13 14<h1 align="left">GXPackedRGB5A3</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20#define GXPackedRGB5A3(r, g, b, a) \ 21 ((u16)((a)>=224 ? \ 22 ((((r)&0xf8)<<7)|(((g)&0xf8)<<2)|(((b)&0xf8)>>3)|(1<<15)): \ 23 ((((r)&0xf0)<<4)|(((g)&0xf0) )|(((b)&0xf0)>>4)|(((a)&0xe0)<<7)))) 24</pre></dd></dl> 25 26<h2>Arguments</h2> 27<TABLE class="arguments" border="1" > 28 <tr> 29<TH>r, g, b, a</TH> 30<TD>Color components.</TD> 31 </tr> 32</TABLE> 33 34<h2>Return Values</h2> 35<p>None.</p> 36 37<H2>Description</H2> 38<P>Packs RGBA color components into RGBA5551/4443 16-bit format. The decimal portion of each component is truncated.</P> 39 40<h2>See Also</h2> 41<P class="reference"> 42<a href="GXPackedRGB565.html">GXPackedRGB565</a>, 43<a href="GXPackedRGBA4.html">GXPackedRGBA4</a> 44</p> 45 46<H2>Revision History</H2> 47<P> 482006/03/01 Initial version.<br> 49</P> 50 51<hr><p>CONFIDENTIAL</p></body> 52</html>