Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bad97183153701b09df5fae1052b1c30 > files > 1890

crystalspace-doc-1.2.1-5mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Crystal Space 1.2.1: csgfx/inv_cmap.h Source File (Crystal Space 1.2.1 Public API Reference)</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
 <tr height="59">
  <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td>
  <td class="head"><h2>Public API Reference</h2></td>
 </tr>
 <tr height="11">
  <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
 </tr>
</table>
<div class="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>csgfx/inv_cmap.h</h1><a href="inv__cmap_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * This software is copyrighted as noted below.  It may be freely copied,</span>
<a name="l00003"></a>00003 <span class="comment"> * modified, and redistributed, provided that the copyright notice is</span>
<a name="l00004"></a>00004 <span class="comment"> * preserved on all copies.</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * There is no warranty or other guarantee of fitness for this software,</span>
<a name="l00007"></a>00007 <span class="comment"> * it is provided solely "as is".  Bug reports or fixes may be sent</span>
<a name="l00008"></a>00008 <span class="comment"> * to the author, who may or may not act on them as he desires.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * You may not include this software in a program or other software product</span>
<a name="l00011"></a>00011 <span class="comment"> * without supplying the source, or without informing the end-user that the</span>
<a name="l00012"></a>00012 <span class="comment"> * source is available for no extra charge.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * If you modify this software, you should include a notice giving the</span>
<a name="l00015"></a>00015 <span class="comment"> * name of the person performing the modification, the date of modification,</span>
<a name="l00016"></a>00016 <span class="comment"> * and the reason for such modification.</span>
<a name="l00017"></a>00017 <span class="comment"> */</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="comment">/*</span>
<a name="l00020"></a>00020 <span class="comment"> * inv_cmap.c - Compute an inverse colormap.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> * Author:      Spencer W. Thomas</span>
<a name="l00023"></a>00023 <span class="comment"> *              EECS Dept.</span>
<a name="l00024"></a>00024 <span class="comment"> *              University of Michigan</span>
<a name="l00025"></a>00025 <span class="comment"> * Date:        Thu Sep 20 1990</span>
<a name="l00026"></a>00026 <span class="comment"> * Copyright (c) 1990, University of Michigan</span>
<a name="l00027"></a>00027 <span class="comment"> *</span>
<a name="l00028"></a>00028 <span class="comment"> * Modified:    12 Oct 1998 by G. C. Ewing</span>
<a name="l00029"></a>00029 <span class="comment"> *              Allow for different numbers of bits for r, g, and b.</span>
<a name="l00030"></a>00030 <span class="comment"> *              Convert to C++.</span>
<a name="l00031"></a>00031 <span class="comment"> */</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="preprocessor">#ifndef __CS_INV_CMAP_H__</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define __CS_INV_CMAP_H__</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00040"></a>00040 <span class="preprocessor">#include "csextern.h"</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="preprocessor">#include "<a class="code" href="rgbpixel_8h.html" title="RGB colors.">rgbpixel.h</a>"</span>
<a name="l00043"></a>00043 
<a name="l00090"></a>00090 <span class="keyword">extern</span> CS_CRYSTALSPACE_EXPORT <span class="keywordtype">void</span> <a class="code" href="inv__cmap_8h.html#99836a24c4badc2aab116648dc3ffd58" title="Compute an inverse colormap efficiently.">csInverseColormap</a> (<span class="keywordtype">int</span> colors, 
<a name="l00091"></a>00091   <a class="code" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a> *colormap, <span class="keywordtype">int</span> rbits, <span class="keywordtype">int</span> gbits, <span class="keywordtype">int</span> bbits, <a class="code" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79" title="unsigned 8-bit integer (0..255)">uint8</a> *&amp;rgbmap,
<a name="l00092"></a>00092   <a class="code" href="group__util.html#g1134b580f8da4de94ca6b1de4d37975e" title="unsigned 32-bit integer (0..4 294 967 295)">uint32</a> *dist_buf = 0);
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 <span class="preprocessor">#endif // __CS_INV_CMAP_H__</span>
</pre></div><hr size="1"><address><small>Generated for Crystal Space 1.2.1 by 
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 
</small></address> </div></body> </html>