diff options
Diffstat (limited to 'docs/doxygen/nel/a02988.html')
-rw-r--r-- | docs/doxygen/nel/a02988.html | 1475 |
1 files changed, 1475 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02988.html b/docs/doxygen/nel/a02988.html new file mode 100644 index 00000000..6ca78bd4 --- /dev/null +++ b/docs/doxygen/nel/a02988.html @@ -0,0 +1,1475 @@ +<!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::CNoise3d 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::CNoise3d Class Reference</h1><code>#include <<a class="el" href="a06104.html">noise_3d.h</a>></code> +<p> +<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> </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3da0">CNoise3d</a> (<a class="el" href="a02434.html">NL3D::IDriver</a> *pDriver)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3da1">flush</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3da2">flush2passes</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3da3">getDepth</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3da4">getHeight</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3da5">getWidth</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3da6">init</a> (<a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a575">w</a>=64, <a class="el" href="a04558.html#a11">uint32</a> h=64, <a class="el" href="a04558.html#a11">uint32</a> d=32)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3da7">render</a> (<a class="el" href="a03295.html">NLMISC::CQuadUV</a> &qc, float wpos, float intensity)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3da8">render2passes</a> (<a class="el" href="a03295.html">NLMISC::CQuadUV</a> &qc, float wpos, float intensity)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3da9">renderGrid</a> (<a class="el" href="a04558.html#a11">uint32</a> nbw, <a class="el" href="a04558.html#a11">uint32</a> nbh, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a575">w</a>, <a class="el" href="a04558.html#a11">uint32</a> h, float UStart, float VStart, float WStart, float dU, float dV, float dW, float intensity)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3da10">renderGrid2passes</a> (<a class="el" href="a04558.html#a11">uint32</a> nbw, <a class="el" href="a04558.html#a11">uint32</a> nbh, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a575">w</a>, <a class="el" href="a04558.html#a11">uint32</a> h, float UStart, float VStart, float WStart, float dU, float dV, float dW, float intensity)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3da11">~CNoise3d</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="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02434.html">NL3D::IDriver</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr1">_Driver</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr2">_Height</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr3">_Intensity</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr4">_IsDriverSupportCloudSinglePass</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02839.html">NL3D::CMaterial</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr6">_Mem</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr7">_NbSliceH</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr8">_NbSliceW</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr9">_NbVertices</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03640.html">NLMISC::CUV</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr11">_ScaleH</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr12">_ScaleW</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03408.html">NLMISC::CSmartPtr</a>< <a class="el" href="a03511.html">NL3D::CTextureMem</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr13">_Tex</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03692.html">NL3D::CVertexBuffer</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02988.html#NL3D_1_1CNoise3dr15">_Width</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CNoise3da0" doxytag="NL3D::CNoise3d::CNoise3d" ></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::CNoise3d::CNoise3d </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02434.html">NL3D::IDriver</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>pDriver</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="a06103.html#l00036">36</a> of file <a class="el" href="a06103.html">noise_3d.cpp</a>. +<p> +References <a class="el" href="a06104.html#l00089">_IsDriverSupportCloudSinglePass</a>, <a class="el" href="a06104.html#l00086">_Mat</a>, <a class="el" href="a06104.html#l00077">_Mem</a>, <a class="el" href="a06104.html#l00084">_NbVertices</a>, and <a class="el" href="a06104.html#l00081">_OffS</a>. +<p> +<div class="fragment"><pre>00037 { +00038 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr6">_Mem</a> = NULL; +00039 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a> = NULL; +00040 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a> = NULL; +00041 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr1">_Driver</a> = pDriver; +00042 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr9">_NbVertices</a> = 0; +00043 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr4">_IsDriverSupportCloudSinglePass</a> = pDriver->supportCloudRenderSinglePass(); +00044 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3da11" doxytag="NL3D::CNoise3d::~CNoise3d" ></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::CNoise3d::~<a class="el" href="a02988.html">CNoise3d</a> </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="a06103.html#l00047">47</a> of file <a class="el" href="a06103.html">noise_3d.cpp</a>. +<p> +References <a class="el" href="a06104.html#l00086">_Mat</a>, and <a class="el" href="a06104.html#l00081">_OffS</a>. +<p> +<div class="fragment"><pre>00048 { +00049 <span class="comment">// delete _Mem; // done by CTertureMem destructor</span> +00050 <span class="keyword">delete</span> <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>; +00051 <span class="keyword">delete</span> [] <a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>; +00052 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CNoise3da1" doxytag="NL3D::CNoise3d::flush" ></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::CNoise3d::flush </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="a06103.html#l00421">421</a> of file <a class="el" href="a06103.html">noise_3d.cpp</a>. +<p> +References <a class="el" href="a06104.html#l00089">_IsDriverSupportCloudSinglePass</a>, <a class="el" href="a06104.html#l00086">_Mat</a>, <a class="el" href="a06104.html#l00084">_NbVertices</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera2">NL3D::IDriver::activeVertexBuffer()</a>, <a class="el" href="a06103.html#l00436">flush2passes()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera54">NL3D::IDriver::renderQuads()</a>, <a class="el" href="a05641.html#l00118">NL3D::CMaterial::setColor()</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05557.html#l00110">NL3D::CCloud::generate()</a>. +<p> +<div class="fragment"><pre>00422 { +00423 <span class="keywordflow">if</span> (!<a class="code" href="a02988.html#NL3D_1_1CNoise3dr4">_IsDriverSupportCloudSinglePass</a>) +00424 { +00425 <a class="code" href="a02988.html#NL3D_1_1CNoise3da2">flush2passes</a> (); +00426 <span class="keywordflow">return</span>; +00427 } +00428 +00429 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz376_11">setColor</a>(<a class="code" href="a03337.html">CRGBA</a>(0,0,0,(<a class="code" href="a04558.html#a7">uint8</a>)(255*_Intensity))); +00430 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr1">_Driver</a>-><a class="code" href="a02434.html#NL3D_1_1IDrivera2">activeVertexBuffer</a> (_VertexBuffer); +00431 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr1">_Driver</a>-><a class="code" href="a02434.html#NL3D_1_1IDrivera54">renderQuads</a> (*_Mat, 0, _NbVertices/4); +00432 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr9">_NbVertices</a> = 0; +00433 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3da2" doxytag="NL3D::CNoise3d::flush2passes" ></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::CNoise3d::flush2passes </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="a06103.html#l00436">436</a> of file <a class="el" href="a06103.html">noise_3d.cpp</a>. +<p> +References <a class="el" href="a06104.html#l00086">_Mat</a>, <a class="el" href="a06104.html#l00084">_NbVertices</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera2">NL3D::IDriver::activeVertexBuffer()</a>, and <a class="el" href="a02434.html#NL3D_1_1IDrivera54">NL3D::IDriver::renderQuads()</a>. +<p> +Referenced by <a class="el" href="a06103.html#l00421">flush()</a>. +<p> +<div class="fragment"><pre>00437 { +00438 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr1">_Driver</a>-><a class="code" href="a02434.html#NL3D_1_1IDrivera2">activeVertexBuffer</a> (_VertexBuffer); +00439 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr1">_Driver</a>-><a class="code" href="a02434.html#NL3D_1_1IDrivera54">renderQuads</a> (*_Mat, 0, _NbVertices/4); +00440 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr9">_NbVertices</a> = 0; +00441 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3da3" doxytag="NL3D::CNoise3d::getDepth" ></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#a11">uint32</a> NL3D::CNoise3d::getDepth </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="a06103.html#l00457">457</a> of file <a class="el" href="a06103.html">noise_3d.cpp</a>. +<p> +References <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a05557.html#l00110">NL3D::CCloud::generate()</a>. +<p> +<div class="fragment"><pre>00458 { +00459 <span class="keywordflow">return</span> <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>; +00460 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3da4" doxytag="NL3D::CNoise3d::getHeight" ></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#a11">uint32</a> NL3D::CNoise3d::getHeight </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="a06103.html#l00451">451</a> of file <a class="el" href="a06103.html">noise_3d.cpp</a>. +<p> +References <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a05557.html#l00110">NL3D::CCloud::generate()</a>. +<p> +<div class="fragment"><pre>00452 { +00453 <span class="keywordflow">return</span> <a class="code" href="a02988.html#NL3D_1_1CNoise3dr2">_Height</a>; +00454 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3da5" doxytag="NL3D::CNoise3d::getWidth" ></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#a11">uint32</a> NL3D::CNoise3d::getWidth </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="a06103.html#l00445">445</a> of file <a class="el" href="a06103.html">noise_3d.cpp</a>. +<p> +References <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a05557.html#l00110">NL3D::CCloud::generate()</a>. +<p> +<div class="fragment"><pre>00446 { +00447 <span class="keywordflow">return</span> <a class="code" href="a02988.html#NL3D_1_1CNoise3dr15">_Width</a>; +00448 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3da6" doxytag="NL3D::CNoise3d::init" ></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::CNoise3d::init </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>w</em> = 64, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>h</em> = 64, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>d</em> = 32</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></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="a06103.html#l00055">55</a> of file <a class="el" href="a06103.html">noise_3d.cpp</a>. +<p> +References <a class="el" href="a06104.html#l00089">_IsDriverSupportCloudSinglePass</a>, <a class="el" href="a06104.html#l00086">_Mat</a>, <a class="el" href="a06104.html#l00077">_Mem</a>, <a class="el" href="a06104.html#l00075">_NbSliceH</a>, <a class="el" href="a06104.html#l00075">_NbSliceW</a>, <a class="el" href="a06104.html#l00081">_OffS</a>, <a class="el" href="a06104.html#l00082">_ScaleH</a>, <a class="el" href="a06104.html#l00082">_ScaleW</a>, <a class="el" href="a05586.html#l00358">NLMISC::getPowerOf2()</a>, <a class="el" href="a05968.html#l00059">NL3D::CMaterial::initUnlit()</a>, <a class="el" href="a05586.html#l00349">NLMISC::raiseToNextPowerOf2()</a>, <a class="el" href="a05641.html#l00064">NL3D::CMaterial::setBlend()</a>, <a class="el" href="a05641.html#l00091">NL3D::CMaterial::setBlendFunc()</a>, <a class="el" href="a05641.html#l00118">NL3D::CMaterial::setColor()</a>, <a class="el" href="a05968.html#l00282">NL3D::CMaterial::setShader()</a>, <a class="el" href="a05968.html#l00322">NL3D::CMaterial::setTexture()</a>, <a class="el" href="a06710.html#l00169">NL3D::CVertexBuffer::setVertexFormat()</a>, <a class="el" href="a05641.html#l00099">NL3D::CMaterial::setZFunc()</a>, <a class="el" href="a05641.html#l00105">NL3D::CMaterial::setZWrite()</a>, <a class="el" href="a06655.html#l00049">NLMISC::CUV::U</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a06655.html#l00049">NLMISC::CUV::V</a>, and <a class="el" href="a05646.html#l00236">w</a>. +<p> +Referenced by <a class="el" href="a05559.html#l00269">NL3D::CCloudScape::init()</a>. +<p> +<div class="fragment"><pre>00056 { +00057 <a class="code" href="a04558.html#a11">uint32</a> i; +00058 +00059 <span class="keywordflow">if</span> (<a class="code" href="a02988.html#NL3D_1_1CNoise3dr6">_Mem</a> != NULL) +00060 <span class="keywordflow">return</span>; +00061 +00062 <a class="code" href="a04223.html#a575">w</a> = <a class="code" href="a05378.html#a262">raiseToNextPowerOf2</a> (w); +00063 h = <a class="code" href="a05378.html#a262">raiseToNextPowerOf2</a> (h); +00064 d = <a class="code" href="a05378.html#a262">raiseToNextPowerOf2</a> (d); +00065 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a575">w</a> > 64) <a class="code" href="a04223.html#a575">w</a> = 64; +00066 <span class="keywordflow">if</span> (h > 64) h = 64; +00067 <span class="keywordflow">if</span> (d > 64) d = 64; +00068 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a575">w</a> < 4) <a class="code" href="a04223.html#a575">w</a> = 4; +00069 <span class="keywordflow">if</span> (h < 4) h = 4; +00070 <span class="keywordflow">if</span> (d < 4) d = 4; +00071 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr15">_Width</a> = <a class="code" href="a04223.html#a575">w</a>; +00072 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr2">_Height</a> = h; +00073 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a> = d; +00074 <a class="code" href="a04558.html#a11">uint32</a> vdpo2 = <a class="code" href="a05378.html#a263">getPowerOf2</a>(_Depth); +00075 +00076 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr8">_NbSliceW</a> = 1 << (vdpo2 / 2); +00077 <span class="keywordflow">if</span> ((vdpo2 & 1) != 0) +00078 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr7">_NbSliceH</a> = 2 << (vdpo2 / 2); +00079 <span class="keywordflow">else</span> +00080 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr7">_NbSliceH</a> = 1 << (vdpo2 / 2); +00081 +00082 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr12">_ScaleW</a> = 1.0f / <a class="code" href="a02988.html#NL3D_1_1CNoise3dr8">_NbSliceW</a>; +00083 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr11">_ScaleH</a> = 1.0f / <a class="code" href="a02988.html#NL3D_1_1CNoise3dr7">_NbSliceH</a>; +00084 +00085 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr6">_Mem</a> = <span class="keyword">new</span> <a class="code" href="a04558.html#a7">uint8</a>[<a class="code" href="a04223.html#a575">w</a>*h*d]; +00086 +00087 <span class="comment">// Create initial noise</span> +00088 <span class="keywordflow">for</span> (i = 0; i < (<a class="code" href="a04223.html#a575">w</a>*h*d); i++) +00089 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr6">_Mem</a>[i] = (<a class="code" href="a04558.html#a7">uint8</a>)(256.0f*rand()/RAND_MAX); +00090 +00091 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a> = <span class="keyword">new</span> CUV [<a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>]; +00092 <span class="keywordflow">for</span> (i = 0; i < <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>; i++) +00093 { +00094 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[i].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a> = ((<span class="keywordtype">float</span>)rand())/RAND_MAX; +00095 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[i].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a> = ((<span class="keywordtype">float</span>)rand())/RAND_MAX; +00096 } +00097 +00098 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr13">_Tex</a> = <span class="keyword">new</span> CTextureMem (_Mem, _Width*_NbSliceW*_Height*_NbSliceH, <span class="keyword">true</span>, <span class="keyword">false</span>, _Width*_NbSliceW, _Height*_NbSliceH, +00099 CBitmap::Alpha); +00100 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr13">_Tex</a>->setWrapS(ITexture::Repeat); +00101 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr13">_Tex</a>->setWrapT(ITexture::Repeat); +00102 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr13">_Tex</a>->setFilterMode(ITexture::Linear, ITexture::LinearMipMapOff); +00103 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr13">_Tex</a>->touch(); +00104 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr13">_Tex</a>->generate(); +00105 +00106 <span class="keywordflow">if</span> (<a class="code" href="a02988.html#NL3D_1_1CNoise3dr4">_IsDriverSupportCloudSinglePass</a>) +00107 { +00108 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a> = <span class="keyword">new</span> CMaterial(); +00109 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz384_1">initUnlit</a>(); +00110 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMateriala8">setShader</a> (CMaterial::Cloud); +00111 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz364_1">setTexture</a> (0, _Tex); +00112 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz364_1">setTexture</a> (1, _Tex); +00113 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz376_11">setColor</a> (<a class="code" href="a03337.html">CRGBA</a>(255,255,255,255)); +00114 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz366_3">setBlend</a> (<span class="keyword">true</span>); +00115 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz366_4">setBlendFunc</a>(CMaterial::one, CMaterial::one); +00116 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz374_4">setZFunc</a> (CMaterial::always); +00117 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz374_5">setZWrite</a> (<span class="keyword">false</span>); +00118 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_30">setVertexFormat</a> (CVertexBuffer::PositionFlag | CVertexBuffer::PrimaryColorFlag | +00119 CVertexBuffer::TexCoord0Flag | CVertexBuffer::TexCoord1Flag); +00120 } +00121 <span class="keywordflow">else</span> +00122 { +00123 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a> = <span class="keyword">new</span> CMaterial(); +00124 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz384_1">initUnlit</a>(); +00125 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMateriala8">setShader</a> (CMaterial::Normal); +00126 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz364_1">setTexture</a> (0, _Tex); +00127 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz376_11">setColor</a> (<a class="code" href="a03337.html">CRGBA</a>(255,255,255,255)); +00128 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz366_3">setBlend</a> (<span class="keyword">true</span>); +00129 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz366_4">setBlendFunc</a>(CMaterial::one, CMaterial::one); +00130 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz374_4">setZFunc</a> (CMaterial::always); +00131 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr5">_Mat</a>-><a class="code" href="a02839.html#NL3D_1_1CMaterialz374_5">setZWrite</a> (<span class="keyword">false</span>); +00132 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_30">setVertexFormat</a> (CVertexBuffer::PositionFlag | CVertexBuffer::PrimaryColorFlag | +00133 CVertexBuffer::TexCoord0Flag); +00134 } +00135 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3da7" doxytag="NL3D::CNoise3d::render" ></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::CNoise3d::render </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03295.html">NLMISC::CQuadUV</a> & </td> + <td class="mdname" nowrap> <em>qc</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>wpos</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>intensity</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></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="a06103.html#l00207">207</a> of file <a class="el" href="a06103.html">noise_3d.cpp</a>. +<p> +References <a class="el" href="a06104.html#l00089">_IsDriverSupportCloudSinglePass</a>, <a class="el" href="a06104.html#l00075">_NbSliceW</a>, <a class="el" href="a06104.html#l00084">_NbVertices</a>, <a class="el" href="a06104.html#l00081">_OffS</a>, <a class="el" href="a06104.html#l00082">_ScaleH</a>, <a class="el" href="a06104.html#l00082">_ScaleW</a>, <a class="el" href="a06710.html#l00465">NL3D::CVertexBuffer::getColorPointer()</a>, <a class="el" href="a06711.html#l00453">NL3D::CVertexBuffer::getNumVertices()</a>, <a class="el" href="a06710.html#l00497">NL3D::CVertexBuffer::getTexCoordPointer()</a>, <a class="el" href="a06710.html#l00438">NL3D::CVertexBuffer::getVertexCoordPointer()</a>, <a class="el" href="a06711.html#l00473">NL3D::CVertexBuffer::getVertexSize()</a>, <a class="el" href="a06103.html#l00138">render2passes()</a>, <a class="el" href="a06710.html#l00409">NL3D::CVertexBuffer::setNumVertices()</a>, <a class="el" href="a06655.html#l00049">NLMISC::CUV::U</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a05760.html#l00256">NLMISC::CQuadUV::Uv0</a>, <a class="el" href="a05760.html#l00256">NLMISC::CQuadUV::Uv1</a>, <a class="el" href="a05760.html#l00256">NLMISC::CQuadUV::Uv2</a>, <a class="el" href="a05760.html#l00256">NLMISC::CQuadUV::Uv3</a>, <a class="el" href="a06655.html#l00049">NLMISC::CUV::V</a>, <a class="el" href="a06297.html#l00046">NLMISC::CQuad::V0</a>, <a class="el" href="a06297.html#l00046">NLMISC::CQuad::V1</a>, <a class="el" href="a06297.html#l00046">NLMISC::CQuad::V2</a>, and <a class="el" href="a06297.html#l00046">NLMISC::CQuad::V3</a>. +<p> +<div class="fragment"><pre>00208 { +00209 <span class="comment">// [ At0*wpos+At1*(1-wpos) ] * alpha</span> +00210 +00211 <span class="keywordflow">if</span> (!<a class="code" href="a02988.html#NL3D_1_1CNoise3dr4">_IsDriverSupportCloudSinglePass</a>) +00212 { +00213 <a class="code" href="a02988.html#NL3D_1_1CNoise3da8">render2passes</a> (qc, wpos, intensity); +00214 <span class="keywordflow">return</span>; +00215 } +00216 +00217 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr3">_Intensity</a> = intensity; +00218 +00219 wpos = wpos - floorf (wpos); +00220 <a class="code" href="a04558.html#a11">uint32</a> nSlice1 = (<a class="code" href="a04558.html#a11">uint32</a>)(wpos * <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>), nSlice2; +00221 <span class="keywordflow">if</span> (nSlice1 == (<a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>-1)) +00222 nSlice2 = 0; +00223 <span class="keywordflow">else</span> +00224 nSlice2 = 1 + nSlice1; +00225 <span class="comment">// If wpos is just on slice1 alpha must be one</span> +00226 <span class="keywordtype">float</span> alphaPos = 1.0f - <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>*(wpos - (((<span class="keywordtype">float</span>)nSlice1) / <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>)); +00227 +00228 <a class="code" href="a04558.html#a7">uint8</a> nAlphaPos = (<a class="code" href="a04558.html#a7">uint8</a>)(255*alphaPos); +00229 +00230 <a class="code" href="a04558.html#a11">uint32</a> nVSize = <a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBuffera9">getVertexSize</a> (); +00231 +00232 <span class="keywordflow">if</span> (<a class="code" href="a02988.html#NL3D_1_1CNoise3dr9">_NbVertices</a> == <a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBuffera4">getNumVertices</a>()) +00233 { +00234 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBuffera13">setNumVertices</a> (_NbVertices+4); +00235 } +00236 +00237 CVector *pVertices = (CVector*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_17">getVertexCoordPointer</a>(_NbVertices); +00238 *pVertices = qc.<a class="code" href="a03265.html#NLMISC_1_1CQuadUVo4">V0</a>; pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00239 *pVertices = qc.<a class="code" href="a03265.html#NLMISC_1_1CQuadUVo5">V1</a>; pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00240 *pVertices = qc.<a class="code" href="a03265.html#NLMISC_1_1CQuadUVo6">V2</a>; pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00241 *pVertices = qc.<a class="code" href="a03265.html#NLMISC_1_1CQuadUVo7">V3</a>; +00242 +00243 CUV *pUV = (CUV*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_15">getTexCoordPointer</a> (_NbVertices, 0); +00244 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo0">Uv0</a>.U/_NbSliceW+_OffS[nSlice1].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo0">Uv0</a>.V*_ScaleH+_OffS[nSlice1].V); +00245 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00246 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo1">Uv1</a>.U/_NbSliceW+_OffS[nSlice1].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo1">Uv1</a>.V*_ScaleH+_OffS[nSlice1].V); +00247 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00248 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo2">Uv2</a>.U/_NbSliceW+_OffS[nSlice1].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo2">Uv2</a>.V*_ScaleH+_OffS[nSlice1].V); +00249 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00250 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo3">Uv3</a>.U/_NbSliceW+_OffS[nSlice1].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo3">Uv3</a>.V*_ScaleH+_OffS[nSlice1].V); +00251 +00252 pUV = (CUV*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_15">getTexCoordPointer</a> (_NbVertices, 1); +00253 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo0">Uv0</a>.U*_ScaleW+_OffS[nSlice2].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo0">Uv0</a>.V*_ScaleH+_OffS[nSlice2].V); +00254 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00255 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo1">Uv1</a>.U*_ScaleW+_OffS[nSlice2].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo1">Uv1</a>.V*_ScaleH+_OffS[nSlice2].V); +00256 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00257 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo2">Uv2</a>.U*_ScaleW+_OffS[nSlice2].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo2">Uv2</a>.V*_ScaleH+_OffS[nSlice2].V); +00258 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00259 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo3">Uv3</a>.U*_ScaleW+_OffS[nSlice2].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo3">Uv3</a>.V*_ScaleH+_OffS[nSlice2].V); +00260 +00261 <a class="code" href="a04558.html#a7">uint8</a> *pColA = (<a class="code" href="a04558.html#a7">uint8</a>*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_2">getColorPointer</a>(_NbVertices) + 3; +00262 *pColA = nAlphaPos; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00263 *pColA = nAlphaPos; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00264 *pColA = nAlphaPos; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00265 *pColA = nAlphaPos; +00266 +00267 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr9">_NbVertices</a> += 4; +00268 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3da8" doxytag="NL3D::CNoise3d::render2passes" ></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::CNoise3d::render2passes </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03295.html">NLMISC::CQuadUV</a> & </td> + <td class="mdname" nowrap> <em>qc</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>wpos</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>intensity</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></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="a06103.html#l00138">138</a> of file <a class="el" href="a06103.html">noise_3d.cpp</a>. +<p> +References <a class="el" href="a06104.html#l00084">_NbVertices</a>, <a class="el" href="a06104.html#l00081">_OffS</a>, <a class="el" href="a06104.html#l00082">_ScaleH</a>, <a class="el" href="a06104.html#l00082">_ScaleW</a>, <a class="el" href="a05646.html#l01173">alpha</a>, <a class="el" href="a06710.html#l00465">NL3D::CVertexBuffer::getColorPointer()</a>, <a class="el" href="a06711.html#l00453">NL3D::CVertexBuffer::getNumVertices()</a>, <a class="el" href="a06710.html#l00497">NL3D::CVertexBuffer::getTexCoordPointer()</a>, <a class="el" href="a06710.html#l00438">NL3D::CVertexBuffer::getVertexCoordPointer()</a>, <a class="el" href="a06711.html#l00473">NL3D::CVertexBuffer::getVertexSize()</a>, <a class="el" href="a06710.html#l00409">NL3D::CVertexBuffer::setNumVertices()</a>, <a class="el" href="a06655.html#l00049">NLMISC::CUV::U</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a05760.html#l00256">NLMISC::CQuadUV::Uv0</a>, <a class="el" href="a05760.html#l00256">NLMISC::CQuadUV::Uv1</a>, <a class="el" href="a05760.html#l00256">NLMISC::CQuadUV::Uv2</a>, <a class="el" href="a05760.html#l00256">NLMISC::CQuadUV::Uv3</a>, <a class="el" href="a06655.html#l00049">NLMISC::CUV::V</a>, <a class="el" href="a06297.html#l00046">NLMISC::CQuad::V0</a>, <a class="el" href="a06297.html#l00046">NLMISC::CQuad::V1</a>, <a class="el" href="a06297.html#l00046">NLMISC::CQuad::V2</a>, and <a class="el" href="a06297.html#l00046">NLMISC::CQuad::V3</a>. +<p> +Referenced by <a class="el" href="a06103.html#l00207">render()</a>. +<p> +<div class="fragment"><pre>00139 { +00140 <span class="comment">// For the moment we do it in 2 passes : because wpos is a position between slice we have to do :</span> +00141 <span class="comment">// [ At0*wpos+At1*(1-wpos) ] * alpha</span> +00142 <span class="comment">// this is done like that :</span> +00143 <span class="comment">// At0*[wpos*alpha] + At1*[(1-wpos)*alpha] </span> +00144 +00145 wpos = fmodf (wpos, 1.0f); +00146 <a class="code" href="a04558.html#a11">uint32</a> nSlice1 = (<a class="code" href="a04558.html#a11">uint32</a>)(wpos * <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>), nSlice2; +00147 <span class="keywordflow">if</span> (nSlice1 == (<a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>-1)) +00148 nSlice2 = 0; +00149 <span class="keywordflow">else</span> +00150 nSlice2 = 1 + nSlice1; +00151 <span class="comment">// If wpos is just on slice1 alpha must be one</span> +00152 <span class="keywordtype">float</span> alphaPos = 1.0f - <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>*(wpos - (((<span class="keywordtype">float</span>)nSlice1) / <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>)); +00153 +00154 <span class="keywordflow">if</span> (<a class="code" href="a02988.html#NL3D_1_1CNoise3dr9">_NbVertices</a> == <a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBuffera4">getNumVertices</a>()) +00155 { +00156 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBuffera13">setNumVertices</a>(_NbVertices+8); +00157 } +00158 +00159 <a class="code" href="a04558.html#a11">uint32</a> nVSize = <a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBuffera9">getVertexSize</a> (); +00160 CVector *pVertices = (CVector*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_17">getVertexCoordPointer</a>(_NbVertices); +00161 *pVertices = qc.<a class="code" href="a03265.html#NLMISC_1_1CQuadUVo4">V0</a>; pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00162 *pVertices = qc.<a class="code" href="a03265.html#NLMISC_1_1CQuadUVo5">V1</a>; pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00163 *pVertices = qc.<a class="code" href="a03265.html#NLMISC_1_1CQuadUVo6">V2</a>; pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00164 *pVertices = qc.<a class="code" href="a03265.html#NLMISC_1_1CQuadUVo7">V3</a>; pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00165 *pVertices = qc.<a class="code" href="a03265.html#NLMISC_1_1CQuadUVo4">V0</a>; pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00166 *pVertices = qc.<a class="code" href="a03265.html#NLMISC_1_1CQuadUVo5">V1</a>; pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00167 *pVertices = qc.<a class="code" href="a03265.html#NLMISC_1_1CQuadUVo6">V2</a>; pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00168 *pVertices = qc.<a class="code" href="a03265.html#NLMISC_1_1CQuadUVo7">V3</a>; +00169 +00170 CUV *pUV = (CUV*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_15">getTexCoordPointer</a> (_NbVertices, 0); +00171 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo0">Uv0</a>.U*_ScaleW+_OffS[nSlice1].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo0">Uv0</a>.V*_ScaleH+_OffS[nSlice1].V); +00172 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00173 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo1">Uv1</a>.U*_ScaleW+_OffS[nSlice1].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo1">Uv1</a>.V*_ScaleH+_OffS[nSlice1].V); +00174 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00175 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo2">Uv2</a>.U*_ScaleW+_OffS[nSlice1].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo2">Uv2</a>.V*_ScaleH+_OffS[nSlice1].V); +00176 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00177 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo3">Uv3</a>.U*_ScaleW+_OffS[nSlice1].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo3">Uv3</a>.V*_ScaleH+_OffS[nSlice1].V); +00178 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00179 +00180 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo0">Uv0</a>.U*_ScaleW+_OffS[nSlice2].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo0">Uv0</a>.V*_ScaleH+_OffS[nSlice2].V); +00181 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00182 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo1">Uv1</a>.U*_ScaleW+_OffS[nSlice2].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo1">Uv1</a>.V*_ScaleH+_OffS[nSlice2].V); +00183 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00184 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo2">Uv2</a>.U*_ScaleW+_OffS[nSlice2].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo2">Uv2</a>.V*_ScaleH+_OffS[nSlice2].V); +00185 pUV = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV) + nVSize ); +00186 *pUV = CUV(qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo3">Uv3</a>.U*_ScaleW+_OffS[nSlice2].U, qc.<a class="code" href="a03295.html#NLMISC_1_1CQuadUVo3">Uv3</a>.V*_ScaleH+_OffS[nSlice2].V); +00187 +00188 <a class="code" href="a04558.html#a7">uint8</a> finalAlpha = (<a class="code" href="a04558.html#a7">uint8</a>)(255*alphaPos*<a class="code" href="a04223.html#a663">alpha</a>); +00189 +00190 <a class="code" href="a04558.html#a7">uint8</a> *pColA = (<a class="code" href="a04558.html#a7">uint8</a>*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_2">getColorPointer</a>(_NbVertices) + 3; +00191 *pColA = finalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00192 *pColA = finalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00193 *pColA = finalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00194 *pColA = finalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00195 +00196 finalAlpha = (<a class="code" href="a04558.html#a7">uint8</a>)(255*(1.0f-alphaPos)*<a class="code" href="a04223.html#a663">alpha</a>); +00197 +00198 *pColA = finalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00199 *pColA = finalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00200 *pColA = finalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00201 *pColA = finalAlpha; +00202 +00203 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr9">_NbVertices</a> += 8; +00204 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3da9" doxytag="NL3D::CNoise3d::renderGrid" ></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::CNoise3d::renderGrid </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>nbw</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>nbh</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>w</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>h</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>UStart</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>VStart</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>WStart</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>dU</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>dV</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>dW</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>intensity</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></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="a06103.html#l00271">271</a> of file <a class="el" href="a06103.html">noise_3d.cpp</a>. +<p> +References <a class="el" href="a06104.html#l00089">_IsDriverSupportCloudSinglePass</a>, <a class="el" href="a06104.html#l00075">_NbSliceH</a>, <a class="el" href="a06104.html#l00075">_NbSliceW</a>, <a class="el" href="a06104.html#l00084">_NbVertices</a>, <a class="el" href="a06104.html#l00081">_OffS</a>, <a class="el" href="a06710.html#l00465">NL3D::CVertexBuffer::getColorPointer()</a>, <a class="el" href="a06711.html#l00453">NL3D::CVertexBuffer::getNumVertices()</a>, <a class="el" href="a06710.html#l00497">NL3D::CVertexBuffer::getTexCoordPointer()</a>, <a class="el" href="a06710.html#l00438">NL3D::CVertexBuffer::getVertexCoordPointer()</a>, <a class="el" href="a06711.html#l00473">NL3D::CVertexBuffer::getVertexSize()</a>, <a class="el" href="a06103.html#l00345">renderGrid2passes()</a>, <a class="el" href="a06710.html#l00409">NL3D::CVertexBuffer::setNumVertices()</a>, <a class="el" href="a06655.html#l00049">NLMISC::CUV::U</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a06655.html#l00049">NLMISC::CUV::V</a>, and <a class="el" href="a05646.html#l00236">w</a>. +<p> +Referenced by <a class="el" href="a05557.html#l00110">NL3D::CCloud::generate()</a>. +<p> +<div class="fragment"><pre>00273 { +00274 +00275 <span class="keywordflow">if</span> (!<a class="code" href="a02988.html#NL3D_1_1CNoise3dr4">_IsDriverSupportCloudSinglePass</a>) +00276 { +00277 <a class="code" href="a02988.html#NL3D_1_1CNoise3da10">renderGrid2passes</a> (nbw, nbh, w, h, UStart, VStart, WStart, dU, dV, dW, intensity); +00278 <span class="keywordflow">return</span>; +00279 } +00280 +00281 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr3">_Intensity</a> = intensity; +00282 +00283 <a class="code" href="a04558.html#a11">uint32</a> i, j, nSlice1, nSlice2; +00284 <span class="keywordtype">float</span> wpos, oneOverNbWNbH = 1.0f / (nbw*nbh); +00285 CVector *pVertices; +00286 CUV *pUV0, *pUV1; +00287 <a class="code" href="a04558.html#a7">uint8</a> *pColA, nAlphaPos; +00288 <a class="code" href="a04558.html#a11">uint32</a> nVSize = <a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBuffera9">getVertexSize</a> (); +00289 +00290 <span class="keywordflow">if</span> (<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBuffera4">getNumVertices</a>() < nbw*nbh*4) +00291 { +00292 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBuffera13">setNumVertices</a> (nbw*nbh*4); +00293 } +00294 +00295 dU = (UStart+dU) /<a class="code" href="a02988.html#NL3D_1_1CNoise3dr8">_NbSliceW</a>; +00296 dV = (VStart+dV) /<a class="code" href="a02988.html#NL3D_1_1CNoise3dr7">_NbSliceH</a>; +00297 UStart = UStart / <a class="code" href="a02988.html#NL3D_1_1CNoise3dr8">_NbSliceW</a>; +00298 VStart = VStart / <a class="code" href="a02988.html#NL3D_1_1CNoise3dr7">_NbSliceH</a>; +00299 +00300 pVertices = (CVector*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_17">getVertexCoordPointer</a>(0); +00301 pUV0 = (CUV*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_15">getTexCoordPointer</a> (0, 0); +00302 pUV1 = (CUV*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_15">getTexCoordPointer</a> (0, 1); +00303 pColA = (<a class="code" href="a04558.html#a7">uint8</a>*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_2">getColorPointer</a>(0) + 3; +00304 +00305 <span class="keywordflow">for</span> (j = 0; j < nbh; ++j) +00306 { +00307 <span class="keywordflow">for</span> (i = 0; i < nbw; ++i) +00308 { +00309 wpos = (<span class="keywordtype">float</span>)WStart+dW*(i+(<span class="keywordtype">float</span>)j*nbw)*oneOverNbWNbH; +00310 wpos = wpos - floorf (wpos); +00311 nSlice1 = (<a class="code" href="a04558.html#a11">uint32</a>)(wpos * <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>); +00312 <span class="keywordflow">if</span> (nSlice1 == (<a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>-1)) +00313 nSlice2 = 0; +00314 <span class="keywordflow">else</span> +00315 nSlice2 = 1 + nSlice1; +00316 <span class="comment">// If wpos is just on slice1 alpha must be one</span> +00317 nAlphaPos = (<a class="code" href="a04558.html#a7">uint8</a>)( 255*(1.0f - <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>*(wpos - (((<span class="keywordtype">float</span>)nSlice1) / <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>))) ); +00318 +00319 *pVertices = CVector((<span class="keywordtype">float</span>)i*w, (<span class="keywordtype">float</span>)j*h, 0.0f); pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00320 *pVertices = CVector((<span class="keywordtype">float</span>)(i+1)*w, (<span class="keywordtype">float</span>)j*h, 0.0f); pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00321 *pVertices = CVector((<span class="keywordtype">float</span>)(i+1)*w, (<span class="keywordtype">float</span>)(j+1)*h, 0.0f); pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00322 *pVertices = CVector((<span class="keywordtype">float</span>)i*w, (<span class="keywordtype">float</span>)(j+1)*h, 0.0f); pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00323 +00324 pUV0->U = UStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV0->V = VStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV0 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV0) + nVSize ); +00325 pUV0->U = dU+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV0->V = VStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV0 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV0) + nVSize ); +00326 pUV0->U = dU+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV0->V = dV+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV0 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV0) + nVSize ); +00327 pUV0->U = UStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV0->V = dV+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV0 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV0) + nVSize ); +00328 +00329 pUV1->U = UStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV1->V = VStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV1 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV1) + nVSize ); +00330 pUV1->U = dU+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV1->V = VStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV1 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV1) + nVSize ); +00331 pUV1->U = dU+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV1->V = dV+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV1 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV1) + nVSize ); +00332 pUV1->U = UStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV1->V = dV+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV1 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV1) + nVSize ); +00333 +00334 *pColA = nAlphaPos; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00335 *pColA = nAlphaPos; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00336 *pColA = nAlphaPos; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00337 *pColA = nAlphaPos; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00338 } +00339 } +00340 +00341 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr9">_NbVertices</a> = nbw*nbh*4; +00342 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3da10" doxytag="NL3D::CNoise3d::renderGrid2passes" ></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::CNoise3d::renderGrid2passes </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>nbw</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>nbh</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>w</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>h</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>UStart</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>VStart</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>WStart</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>dU</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>dV</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>dW</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>intensity</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></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="a06103.html#l00345">345</a> of file <a class="el" href="a06103.html">noise_3d.cpp</a>. +<p> +References <a class="el" href="a06104.html#l00075">_NbSliceH</a>, <a class="el" href="a06104.html#l00075">_NbSliceW</a>, <a class="el" href="a06104.html#l00084">_NbVertices</a>, <a class="el" href="a06104.html#l00081">_OffS</a>, <a class="el" href="a06710.html#l00465">NL3D::CVertexBuffer::getColorPointer()</a>, <a class="el" href="a06711.html#l00453">NL3D::CVertexBuffer::getNumVertices()</a>, <a class="el" href="a06710.html#l00497">NL3D::CVertexBuffer::getTexCoordPointer()</a>, <a class="el" href="a06710.html#l00438">NL3D::CVertexBuffer::getVertexCoordPointer()</a>, <a class="el" href="a06711.html#l00473">NL3D::CVertexBuffer::getVertexSize()</a>, <a class="el" href="a06710.html#l00409">NL3D::CVertexBuffer::setNumVertices()</a>, <a class="el" href="a06655.html#l00049">NLMISC::CUV::U</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a06655.html#l00049">NLMISC::CUV::V</a>, and <a class="el" href="a05646.html#l00236">w</a>. +<p> +Referenced by <a class="el" href="a06103.html#l00271">renderGrid()</a>. +<p> +<div class="fragment"><pre>00347 { +00348 <a class="code" href="a04558.html#a11">uint32</a> i, j, nSlice1, nSlice2; +00349 <span class="keywordtype">float</span> wpos, oneOverNbWNbH = 1.0f / (nbw*nbh); +00350 CVector *pVertices; +00351 CUV *pUV0; +00352 <a class="code" href="a04558.html#a7">uint8</a> *pColA, nFinalAlpha; +00353 <a class="code" href="a04558.html#a11">uint32</a> nVSize = <a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBuffera9">getVertexSize</a> (); +00354 +00355 <span class="keywordflow">if</span> (<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBuffera4">getNumVertices</a>() < 2*nbw*nbh*4) +00356 { +00357 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBuffera13">setNumVertices</a> (2*nbw*nbh*4); +00358 } +00359 +00360 dU = (UStart+dU) /<a class="code" href="a02988.html#NL3D_1_1CNoise3dr8">_NbSliceW</a>; +00361 dV = (VStart+dV) /<a class="code" href="a02988.html#NL3D_1_1CNoise3dr7">_NbSliceH</a>; +00362 UStart = UStart / <a class="code" href="a02988.html#NL3D_1_1CNoise3dr8">_NbSliceW</a>; +00363 VStart = VStart / <a class="code" href="a02988.html#NL3D_1_1CNoise3dr7">_NbSliceH</a>; +00364 +00365 pVertices = (CVector*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_17">getVertexCoordPointer</a>(0); +00366 pUV0 = (CUV*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_15">getTexCoordPointer</a> (0, 0); +00367 pColA = (<a class="code" href="a04558.html#a7">uint8</a>*)<a class="code" href="a02988.html#NL3D_1_1CNoise3dr14">_VertexBuffer</a>.<a class="code" href="a03692.html#NL3D_1_1CVertexBufferz1143_2">getColorPointer</a>(0) + 3; +00368 +00369 <span class="keywordflow">for</span> (j = 0; j < nbh; ++j) +00370 { +00371 <span class="keywordflow">for</span> (i = 0; i < nbw; ++i) +00372 { +00373 wpos = (<span class="keywordtype">float</span>)WStart+dW*(i+(<span class="keywordtype">float</span>)j*nbw)*oneOverNbWNbH; +00374 wpos = fmodf (wpos, 1.0f); +00375 nSlice1 = (<a class="code" href="a04558.html#a11">uint32</a>)(wpos * <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>); +00376 <span class="keywordflow">if</span> (nSlice1 == (<a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>-1)) +00377 nSlice2 = 0; +00378 <span class="keywordflow">else</span> +00379 nSlice2 = 1 + nSlice1; +00380 <span class="comment">// If wpos is just on slice1 alpha must be one</span> +00381 <span class="keywordtype">float</span> alphaPos = 1.0f - <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>*(wpos - (((<span class="keywordtype">float</span>)nSlice1) / <a class="code" href="a02988.html#NL3D_1_1CNoise3dr0">_Depth</a>)); +00382 +00383 *pVertices = CVector((<span class="keywordtype">float</span>)i*w, (<span class="keywordtype">float</span>)j*h, 0.0f); pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00384 *pVertices = CVector((<span class="keywordtype">float</span>)(i+1)*w, (<span class="keywordtype">float</span>)j*h, 0.0f); pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00385 *pVertices = CVector((<span class="keywordtype">float</span>)(i+1)*w, (<span class="keywordtype">float</span>)(j+1)*h, 0.0f); pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00386 *pVertices = CVector((<span class="keywordtype">float</span>)i*w, (<span class="keywordtype">float</span>)(j+1)*h, 0.0f); pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00387 *pVertices = CVector((<span class="keywordtype">float</span>)i*w, (<span class="keywordtype">float</span>)j*h, 0.0f); pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00388 *pVertices = CVector((<span class="keywordtype">float</span>)(i+1)*w, (<span class="keywordtype">float</span>)j*h, 0.0f); pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00389 *pVertices = CVector((<span class="keywordtype">float</span>)(i+1)*w, (<span class="keywordtype">float</span>)(j+1)*h, 0.0f); pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00390 *pVertices = CVector((<span class="keywordtype">float</span>)i*w, (<span class="keywordtype">float</span>)(j+1)*h, 0.0f); pVertices = (CVector*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pVertices) + nVSize ); +00391 +00392 pUV0->U = UStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV0->V = VStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV0 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV0) + nVSize ); +00393 pUV0->U = dU+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV0->V = VStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV0 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV0) + nVSize ); +00394 pUV0->U = dU+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV0->V = dV+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV0 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV0) + nVSize ); +00395 pUV0->U = UStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV0->V = dV+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice1].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV0 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV0) + nVSize ); +00396 +00397 pUV0->U = UStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV0->V = VStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV0 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV0) + nVSize ); +00398 pUV0->U = dU+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV0->V = VStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV0 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV0) + nVSize ); +00399 pUV0->U = dU+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV0->V = dV+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV0 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV0) + nVSize ); +00400 pUV0->U = UStart+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo0">U</a>; pUV0->V = dV+<a class="code" href="a02988.html#NL3D_1_1CNoise3dr10">_OffS</a>[nSlice2].<a class="code" href="a03640.html#NLMISC_1_1CUVo1">V</a>; pUV0 = (CUV*)( ((<a class="code" href="a04558.html#a7">uint8</a>*)pUV0) + nVSize ); +00401 +00402 nFinalAlpha = (<a class="code" href="a04558.html#a7">uint8</a>)(255*alphaPos*intensity); +00403 +00404 *pColA = nFinalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00405 *pColA = nFinalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00406 *pColA = nFinalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00407 *pColA = nFinalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00408 +00409 nFinalAlpha = (<a class="code" href="a04558.html#a7">uint8</a>)(255*(1.0f-alphaPos)*intensity); +00410 +00411 *pColA = nFinalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00412 *pColA = nFinalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00413 *pColA = nFinalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00414 *pColA = nFinalAlpha; pColA = ((<a class="code" href="a04558.html#a7">uint8</a>*)pColA) + nVSize; +00415 } +00416 } +00417 <a class="code" href="a02988.html#NL3D_1_1CNoise3dr9">_NbVertices</a> = 2*4*nbw*nbh; +00418 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CNoise3dr0" doxytag="NL3D::CNoise3d::_Depth" ></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#a11">uint32</a> <a class="el" href="a02988.html#NL3D_1_1CNoise3dr0">NL3D::CNoise3d::_Depth</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="a06104.html#l00074">74</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr1" doxytag="NL3D::CNoise3d::_Driver" ></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="a02434.html">NL3D::IDriver</a>* <a class="el" href="a02988.html#NL3D_1_1CNoise3dr1">NL3D::CNoise3d::_Driver</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="a06104.html#l00088">88</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr2" doxytag="NL3D::CNoise3d::_Height" ></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#a11">uint32</a> <a class="el" href="a02988.html#NL3D_1_1CNoise3dr2">NL3D::CNoise3d::_Height</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="a06104.html#l00074">74</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr3" doxytag="NL3D::CNoise3d::_Intensity" ></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"> float <a class="el" href="a02988.html#NL3D_1_1CNoise3dr3">NL3D::CNoise3d::_Intensity</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="a06104.html#l00080">80</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr4" doxytag="NL3D::CNoise3d::_IsDriverSupportCloudSinglePass" ></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"> bool <a class="el" href="a02988.html#NL3D_1_1CNoise3dr4">NL3D::CNoise3d::_IsDriverSupportCloudSinglePass</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="a06104.html#l00089">89</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. +<p> +Referenced by <a class="el" href="a06103.html#l00036">CNoise3d()</a>, <a class="el" href="a06103.html#l00421">flush()</a>, <a class="el" href="a06103.html#l00055">init()</a>, <a class="el" href="a06103.html#l00207">render()</a>, and <a class="el" href="a06103.html#l00271">renderGrid()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr5" doxytag="NL3D::CNoise3d::_Mat" ></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="a02839.html">NL3D::CMaterial</a>* <a class="el" href="a02988.html#NL3D_1_1CNoise3dr5">NL3D::CNoise3d::_Mat</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="a06104.html#l00086">86</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. +<p> +Referenced by <a class="el" href="a06103.html#l00036">CNoise3d()</a>, <a class="el" href="a06103.html#l00421">flush()</a>, <a class="el" href="a06103.html#l00436">flush2passes()</a>, <a class="el" href="a06103.html#l00055">init()</a>, and <a class="el" href="a06103.html#l00047">~CNoise3d()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr6" doxytag="NL3D::CNoise3d::_Mem" ></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#a7">uint8</a>* <a class="el" href="a02988.html#NL3D_1_1CNoise3dr6">NL3D::CNoise3d::_Mem</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="a06104.html#l00077">77</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. +<p> +Referenced by <a class="el" href="a06103.html#l00036">CNoise3d()</a>, and <a class="el" href="a06103.html#l00055">init()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr7" doxytag="NL3D::CNoise3d::_NbSliceH" ></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#a11">uint32</a> <a class="el" href="a02988.html#NL3D_1_1CNoise3dr7">NL3D::CNoise3d::_NbSliceH</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="a06104.html#l00075">75</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. +<p> +Referenced by <a class="el" href="a06103.html#l00055">init()</a>, <a class="el" href="a06103.html#l00271">renderGrid()</a>, and <a class="el" href="a06103.html#l00345">renderGrid2passes()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr8" doxytag="NL3D::CNoise3d::_NbSliceW" ></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#a11">uint32</a> <a class="el" href="a02988.html#NL3D_1_1CNoise3dr8">NL3D::CNoise3d::_NbSliceW</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="a06104.html#l00075">75</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. +<p> +Referenced by <a class="el" href="a06103.html#l00055">init()</a>, <a class="el" href="a06103.html#l00207">render()</a>, <a class="el" href="a06103.html#l00271">renderGrid()</a>, and <a class="el" href="a06103.html#l00345">renderGrid2passes()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr9" doxytag="NL3D::CNoise3d::_NbVertices" ></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#a11">uint32</a> <a class="el" href="a02988.html#NL3D_1_1CNoise3dr9">NL3D::CNoise3d::_NbVertices</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="a06104.html#l00084">84</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. +<p> +Referenced by <a class="el" href="a06103.html#l00036">CNoise3d()</a>, <a class="el" href="a06103.html#l00421">flush()</a>, <a class="el" href="a06103.html#l00436">flush2passes()</a>, <a class="el" href="a06103.html#l00207">render()</a>, <a class="el" href="a06103.html#l00138">render2passes()</a>, <a class="el" href="a06103.html#l00271">renderGrid()</a>, and <a class="el" href="a06103.html#l00345">renderGrid2passes()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr10" doxytag="NL3D::CNoise3d::_OffS" ></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="a03640.html">NLMISC::CUV</a>* <a class="el" href="a02988.html#NL3D_1_1CNoise3dr10">NL3D::CNoise3d::_OffS</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="a06104.html#l00081">81</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. +<p> +Referenced by <a class="el" href="a06103.html#l00036">CNoise3d()</a>, <a class="el" href="a06103.html#l00055">init()</a>, <a class="el" href="a06103.html#l00207">render()</a>, <a class="el" href="a06103.html#l00138">render2passes()</a>, <a class="el" href="a06103.html#l00271">renderGrid()</a>, <a class="el" href="a06103.html#l00345">renderGrid2passes()</a>, and <a class="el" href="a06103.html#l00047">~CNoise3d()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr11" doxytag="NL3D::CNoise3d::_ScaleH" ></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"> float <a class="el" href="a02988.html#NL3D_1_1CNoise3dr11">NL3D::CNoise3d::_ScaleH</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="a06104.html#l00082">82</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. +<p> +Referenced by <a class="el" href="a06103.html#l00055">init()</a>, <a class="el" href="a06103.html#l00207">render()</a>, and <a class="el" href="a06103.html#l00138">render2passes()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr12" doxytag="NL3D::CNoise3d::_ScaleW" ></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"> float <a class="el" href="a02988.html#NL3D_1_1CNoise3dr12">NL3D::CNoise3d::_ScaleW</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="a06104.html#l00082">82</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. +<p> +Referenced by <a class="el" href="a06103.html#l00055">init()</a>, <a class="el" href="a06103.html#l00207">render()</a>, and <a class="el" href="a06103.html#l00138">render2passes()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr13" doxytag="NL3D::CNoise3d::_Tex" ></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="a03408.html">NLMISC::CSmartPtr</a><<a class="el" href="a03511.html">NL3D::CTextureMem</a>> <a class="el" href="a02988.html#NL3D_1_1CNoise3dr13">NL3D::CNoise3d::_Tex</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="a06104.html#l00078">78</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr14" doxytag="NL3D::CNoise3d::_VertexBuffer" ></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="a03692.html">NL3D::CVertexBuffer</a> <a class="el" href="a02988.html#NL3D_1_1CNoise3dr14">NL3D::CNoise3d::_VertexBuffer</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="a06104.html#l00085">85</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CNoise3dr15" doxytag="NL3D::CNoise3d::_Width" ></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#a11">uint32</a> <a class="el" href="a02988.html#NL3D_1_1CNoise3dr15">NL3D::CNoise3d::_Width</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="a06104.html#l00074">74</a> of file <a class="el" href="a06104.html">noise_3d.h</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a06104.html">noise_3d.h</a><li><a class="el" href="a06103.html">noise_3d.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:57:20 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> |