diff options
Diffstat (limited to 'docs/doxygen/nel/a02812.html')
-rw-r--r-- | docs/doxygen/nel/a02812.html | 385 |
1 files changed, 385 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02812.html b/docs/doxygen/nel/a02812.html new file mode 100644 index 00000000..cd60d5cd --- /dev/null +++ b/docs/doxygen/nel/a02812.html @@ -0,0 +1,385 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: NL3D::CLodCharacterTmpBitmap class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NL3D::CLodCharacterTmpBitmap Class Reference</h1><code>#include <<a class="el" href="a05936.html">lod_character_manager.h</a>></code> +<p> +<hr><a name="_details"></a><h2>Detailed Description</h2> +This bitmap is builded in the Instance texturing build process of <a class="el" href="a02800.html">CLodCharacterManager</a> +<p> + +<p> +Definition at line <a class="el" href="a05936.html#l00066">66</a> of file <a class="el" href="a05936.html">lod_character_manager.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapa0">build</a> (<a class="el" href="a03337.html">CRGBA</a> col)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapa1">build</a> (const <a class="el" href="a02268.html">NLMISC::CBitmap</a> &bmp)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapa2">CLodCharacterTmpBitmap</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03337.html">CRGBA</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapa3">getPixel</a> (<a class="el" href="a04558.html#a7">uint8</a> U, <a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a03254.html">V</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapa4">reset</a> ()</td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03000.html">NLMISC::CObjectVector</a>< <a class="el" href="a03337.html">CRGBA</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr0">_Bitmap</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr1">_UShift</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr2">_VShift</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr3">_WidthPower</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CLodCharacterTmpBitmapa2" doxytag="NL3D::CLodCharacterTmpBitmap::CLodCharacterTmpBitmap" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NL3D::CLodCharacterTmpBitmap::CLodCharacterTmpBitmap </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05935.html#l00792">792</a> of file <a class="el" href="a05935.html">lod_character_manager.cpp</a>. +<p> +References <a class="el" href="a05935.html#l00798">reset()</a>. +<p> +<div class="fragment"><pre>00793 { +00794 <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapa4">reset</a>(); +00795 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CLodCharacterTmpBitmapa0" doxytag="NL3D::CLodCharacterTmpBitmap::build" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CLodCharacterTmpBitmap::build </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03337.html">CRGBA</a> </td> + <td class="mdname1" valign="top" nowrap> <em>col</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05935.html#l00835">835</a> of file <a class="el" href="a05935.html">lod_character_manager.cpp</a>. +<p> +References <a class="el" href="a05936.html#l00091">_Bitmap</a>, and <a class="el" href="a05935.html#l00798">reset()</a>. +<p> +<div class="fragment"><pre>00836 { +00837 <span class="comment">// setup a 1*1 bitmap and set it with col</span> +00838 <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapa4">reset</a>(); +00839 <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr0">_Bitmap</a>[0]= col; +00840 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterTmpBitmapa1" doxytag="NL3D::CLodCharacterTmpBitmap::build" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CLodCharacterTmpBitmap::build </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02268.html">NLMISC::CBitmap</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>bmp</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +build from a bitmap (NB: converted internally). Should be not so big (eg:64*64). Width and height must be <=256 +<p> +Definition at line <a class="el" href="a05935.html#l00809">809</a> of file <a class="el" href="a05935.html">lod_character_manager.cpp</a>. +<p> +References <a class="el" href="a05936.html#l00091">_Bitmap</a>, <a class="el" href="a05936.html#l00095">_UShift</a>, <a class="el" href="a05936.html#l00095">_VShift</a>, <a class="el" href="a05936.html#l00093">_WidthPower</a>, <a class="el" href="a05486.html#l00926">NLMISC::CBitmap::convertToType()</a>, <a class="el" href="a05486.html#l01388">NLMISC::CBitmap::getHeight()</a>, <a class="el" href="a05487.html#l00308">NLMISC::CBitmap::getPixels()</a>, <a class="el" href="a05586.html#l00358">NLMISC::getPowerOf2()</a>, <a class="el" href="a06116.html#l00195">NLMISC::CObjectVector< CRGBA >::getPtr()</a>, <a class="el" href="a05486.html#l01363">NLMISC::CBitmap::getWidth()</a>, <a class="el" href="a05646.html#l01013">height</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06116.html#l00142">NLMISC::CObjectVector< CRGBA >::resize()</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05646.html#l01124">src</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05646.html#l01013">width</a>. +<p> +Referenced by <a class="el" href="a06393.html#l00866">NL3D::CSkeletonModel::computeLodTexture()</a>. +<p> +<div class="fragment"><pre>00810 { +00811 <a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a632">width</a>= bmpIn.<a class="code" href="a02268.html#NL3D_1_1ITexturea20">getWidth</a>(); +00812 <a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a633">height</a>= bmpIn.<a class="code" href="a02268.html#NL3D_1_1ITexturea12">getHeight</a>(); +00813 <a class="code" href="a04199.html#a6">nlassert</a>(width>0 && width<=256); +00814 <a class="code" href="a04199.html#a6">nlassert</a>(height>0 && height<=256); +00815 +00816 <span class="comment">// resize bitmap.</span> +00817 <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr0">_Bitmap</a>.<a class="code" href="a03000.html#NLMISC_1_1CObjectVectorz1982_1">resize</a>(width*height); +00818 <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr3">_WidthPower</a>= <a class="code" href="a05378.html#a263">getPowerOf2</a>(width); +00819 <span class="comment">// compute shift</span> +00820 <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr1">_UShift</a>= 8-<a class="code" href="a05378.html#a263">getPowerOf2</a>(width); +00821 <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr2">_VShift</a>= 8-<a class="code" href="a05378.html#a263">getPowerOf2</a>(height); +00822 +00823 <span class="comment">// convert the bitmap.</span> +00824 <a class="code" href="a02268.html">CBitmap</a> bmp= bmpIn; +00825 bmp.<a class="code" href="a02268.html#NL3D_1_1ITexturea6">convertToType</a>(CBitmap::RGBA); +00826 <a class="code" href="a03337.html">CRGBA</a> *<a class="code" href="a04223.html#a652">src</a>= (<a class="code" href="a03337.html">CRGBA</a>*)&bmp.<a class="code" href="a02268.html#NL3D_1_1ITexturez1927_1">getPixels</a>()[0]; +00827 <a class="code" href="a03337.html">CRGBA</a> *dst= <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr0">_Bitmap</a>.<a class="code" href="a03000.html#NLMISC_1_1CObjectVectorz1984_1">getPtr</a>(); +00828 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a14">sint</a> nPix= <a class="code" href="a04223.html#a632">width</a>*<a class="code" href="a04223.html#a633">height</a>;nPix>0;nPix--, <a class="code" href="a04223.html#a652">src</a>++, dst++) +00829 { +00830 *dst= *<a class="code" href="a04223.html#a652">src</a>; +00831 } +00832 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterTmpBitmapa3" doxytag="NL3D::CLodCharacterTmpBitmap::getPixel" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03337.html">CRGBA</a> NL3D::CLodCharacterTmpBitmap::getPixel </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname" nowrap> <em>U</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname" nowrap> <em>V</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05936.html#l00081">81</a> of file <a class="el" href="a05936.html">lod_character_manager.h</a>. +<p> +References <a class="el" href="a05936.html#l00091">_Bitmap</a>, <a class="el" href="a05936.html#l00095">_UShift</a>, <a class="el" href="a05936.html#l00095">_VShift</a>, <a class="el" href="a05936.html#l00093">_WidthPower</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05935.html#l00955">NL3D::CLodCharacterManager::addTextureCompute()</a>. +<p> +<div class="fragment"><pre>00082 { +00083 U>>= <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr1">_UShift</a>; +00084 V>>= <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr2">_VShift</a>; +00085 <span class="keywordflow">return</span> <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr0">_Bitmap</a>[(V<<<a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr3">_WidthPower</a>) + U]; +00086 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterTmpBitmapa4" doxytag="NL3D::CLodCharacterTmpBitmap::reset" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CLodCharacterTmpBitmap::reset </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05935.html#l00798">798</a> of file <a class="el" href="a05935.html">lod_character_manager.cpp</a>. +<p> +References <a class="el" href="a05936.html#l00091">_Bitmap</a>, <a class="el" href="a05936.html#l00095">_UShift</a>, <a class="el" href="a05936.html#l00095">_VShift</a>, <a class="el" href="a05936.html#l00093">_WidthPower</a>, and <a class="el" href="a06116.html#l00142">NLMISC::CObjectVector< CRGBA >::resize()</a>. +<p> +Referenced by <a class="el" href="a05935.html#l00835">build()</a>, <a class="el" href="a05935.html#l00792">CLodCharacterTmpBitmap()</a>, and <a class="el" href="a05935.html#l00992">NL3D::CLodCharacterManager::endTextureCompute()</a>. +<p> +<div class="fragment"><pre>00799 { +00800 <span class="comment">// setup a 1*1 bitmap</span> +00801 <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr0">_Bitmap</a>.<a class="code" href="a03000.html#NLMISC_1_1CObjectVectorz1982_1">resize</a>(1); +00802 <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr0">_Bitmap</a>[0]= CRGBA::Black; +00803 <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr3">_WidthPower</a>=0; +00804 <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr1">_UShift</a>= 8; +00805 <a class="code" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr2">_VShift</a>= 8; +00806 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CLodCharacterTmpBitmapr0" doxytag="NL3D::CLodCharacterTmpBitmap::_Bitmap" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03000.html">NLMISC::CObjectVector</a><<a class="el" href="a03337.html">CRGBA</a>> <a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr0">NL3D::CLodCharacterTmpBitmap::_Bitmap</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05936.html#l00091">91</a> of file <a class="el" href="a05936.html">lod_character_manager.h</a>. +<p> +Referenced by <a class="el" href="a05935.html#l00809">build()</a>, <a class="el" href="a05936.html#l00081">getPixel()</a>, and <a class="el" href="a05935.html#l00798">reset()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterTmpBitmapr1" doxytag="NL3D::CLodCharacterTmpBitmap::_UShift" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr1">NL3D::CLodCharacterTmpBitmap::_UShift</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05936.html#l00095">95</a> of file <a class="el" href="a05936.html">lod_character_manager.h</a>. +<p> +Referenced by <a class="el" href="a05935.html#l00809">build()</a>, <a class="el" href="a05936.html#l00081">getPixel()</a>, and <a class="el" href="a05935.html#l00798">reset()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterTmpBitmapr2" doxytag="NL3D::CLodCharacterTmpBitmap::_VShift" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr2">NL3D::CLodCharacterTmpBitmap::_VShift</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05936.html#l00095">95</a> of file <a class="el" href="a05936.html">lod_character_manager.h</a>. +<p> +Referenced by <a class="el" href="a05935.html#l00809">build()</a>, <a class="el" href="a05936.html#l00081">getPixel()</a>, and <a class="el" href="a05935.html#l00798">reset()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterTmpBitmapr3" doxytag="NL3D::CLodCharacterTmpBitmap::_WidthPower" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02812.html#NL3D_1_1CLodCharacterTmpBitmapr3">NL3D::CLodCharacterTmpBitmap::_WidthPower</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05936.html#l00093">93</a> of file <a class="el" href="a05936.html">lod_character_manager.h</a>. +<p> +Referenced by <a class="el" href="a05935.html#l00809">build()</a>, <a class="el" href="a05936.html#l00081">getPixel()</a>, and <a class="el" href="a05935.html#l00798">reset()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a05936.html">lod_character_manager.h</a><li><a class="el" href="a05935.html">lod_character_manager.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:50:06 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |