diff options
Diffstat (limited to 'docs/doxygen/nel/structNL3D_1_1CPSUtil.html')
-rw-r--r-- | docs/doxygen/nel/structNL3D_1_1CPSUtil.html | 1397 |
1 files changed, 1397 insertions, 0 deletions
diff --git a/docs/doxygen/nel/structNL3D_1_1CPSUtil.html b/docs/doxygen/nel/structNL3D_1_1CPSUtil.html new file mode 100644 index 00000000..4dd6f79f --- /dev/null +++ b/docs/doxygen/nel/structNL3D_1_1CPSUtil.html @@ -0,0 +1,1397 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.14 --> +<center> +<a class="qindex" href="index.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">Compound List</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">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>NL3D::CPSUtil Struct Reference</h1>This struct contains utility functions used by the particle system. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="ps__util_8h-source.html">ps_util.h</a>></code> +<p> +<a href="structNL3D_1_1CPSUtil-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> +<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d0">registerSerialParticleSystem</a> (void)</td></tr> +<tr><td> </td><td><font size=-1><em>register the classes of the system mus be called when serializing.</em> <a href="#d0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d1">displayBBox</a> (<a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> *driver, const <a class="el" href="classNLMISC_1_1CAABBox.html">NLMISC::CAABBox</a> &box, <a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> col=<a class="el" href="classNLMISC_1_1CRGBA.html#p7">NLMISC::CRGBA::White</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>this draw a bounding box.</em> <a href="#d1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d2">displaySphere</a> (<a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> &driver, float radius, const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &center, <a class="el" href="memory__common_8h.html#a15">uint</a> nbSubdiv=4, <a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> color=<a class="el" href="classNLMISC_1_1CRGBA.html#p7">NLMISC::CRGBA::White</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>draw a sphere.</em> <a href="#d2">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d3">displayDisc</a> (<a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> &driver, float radius, const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &center, const <a class="el" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> &mat, <a class="el" href="memory__common_8h.html#a15">uint</a> nbSubdiv=32, <a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> color=<a class="el" href="classNLMISC_1_1CRGBA.html#p7">NLMISC::CRGBA::White</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>draw a disc (not filled).</em> <a href="#d3">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d4">displayCylinder</a> (<a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> &driver, const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &center, const <a class="el" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> &mat, const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &dim, <a class="el" href="memory__common_8h.html#a15">uint</a> nbSubdiv=32, <a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> color=<a class="el" href="classNLMISC_1_1CRGBA.html#p7">NLMISC::CRGBA::White</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>draw a cylinder (not filled).</em> <a href="#d4">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d5">display3DQuad</a> (<a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> &driver, const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &c1, const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &c2,const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &c3, const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &c4, <a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> color=<a class="el" href="classNLMISC_1_1CRGBA.html#p7">NLMISC::CRGBA::White</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>display a 3d quad in wireline, by using the 4 gicen corners.</em> <a href="#d5">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d6">addRadiusToAABBox</a> (<a class="el" href="classNLMISC_1_1CAABBox.html">NLMISC::CAABBox</a> &box, float radius)</td></tr> +<tr><td> </td><td><font size=-1><em>enlarge a bounding box by the specified radius.</em> <a href="#d6">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d7">displayBasis</a> (<a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> *driver, const <a class="el" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> &modelMat, const <a class="el" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> &m, float <a class="el" href="cf__lexical_8cpp.html#a94">size</a>, <a class="el" href="classNL3D_1_1CFontGenerator.html">CFontGenerator</a> &fg, <a class="el" href="classNL3D_1_1CFontManager.html">CFontManager</a> &fm)</td></tr> +<tr><td> </td><td><font size=-1><em>display a basis using the given matrix. The model matrix must be restored after this call.</em> <a href="#d7">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d8">displayArrow</a> (<a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> *driver, const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &start, const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &<a class="el" href="driver__opengl__extension__def_8h.html#a368">v</a>, float <a class="el" href="cf__lexical_8cpp.html#a94">size</a>, <a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> col1, <a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> col2)</td></tr> +<tr><td> </td><td><font size=-1><em>display an arrow (the same that is used with displayBasis) The user must setup the model matrix himself.</em> <a href="#d8">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d9">print</a> (<a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> *driver, const std::string &text, <a class="el" href="classNL3D_1_1CFontGenerator.html">CFontGenerator</a> &fg, <a class="el" href="classNL3D_1_1CFontManager.html">CFontManager</a> &fm, const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &pos, float <a class="el" href="cf__lexical_8cpp.html#a94">size</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>display a string at the given position. The model matrix must be restored after this call.</em> <a href="#d9">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d10">buildSchmidtBasis</a> (const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &<a class="el" href="driver__opengl__extension__def_8h.html#a368">v</a>, <a class="el" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> &dest)</td></tr> +<tr><td> </td><td><font size=-1><em>build a basis from a vector using Schmidt orthogonalization method.</em> <a href="#d10">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d11">getCos</a> (<a class="el" href="memory__common_8h.html#a10">sint32</a> angle)</td></tr> +<tr><td> </td><td><font size=-1><em>get a cosine from the fast cosine table (which must be have initialised with initFastCosNSinTable).</em> <a href="#d11">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d12">getSin</a> (<a class="el" href="memory__common_8h.html#a10">sint32</a> angle)</td></tr> +<tr><td> </td><td><font size=-1><em>get a cosine from the fast cosine table (which must be have initialised with initFastCosNSinTable).</em> <a href="#d12">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d13">initFastCosNSinTable</a> (void)</td></tr> +<tr><td> </td><td><font size=-1><em>Init the table for cosine and sinus lookup.</em> <a href="#d13">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d14">buildPerlinNoise</a> (<a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &pos, <a class="el" href="memory__common_8h.html#a15">uint</a> nbOctaves)</td></tr> +<tr><td> </td><td><font size=-1><em>compute a perlin noise value, that will range from [0 to 1] The first octave has the unit size.</em> <a href="#d14">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#d15">initPerlinNoiseTable</a> (void)</td></tr> +<tr><td> </td><td><font size=-1><em>init the table used by perlin noise.</em> <a href="#d15">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan=2><br><h2>Static Private Methods</h2></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#f0">registerForces</a> ()</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#f1">registerParticles</a> ()</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#f2">registerEmitters</a> ()</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#f3">registerZones</a> ()</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#f4">registerAttribs</a> ()</td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#f5">getInterpolatedNoise</a> (const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &pos)</td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#f6">getPerlinNoise</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a364">x</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a365">y</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a366">z</a>)</td></tr> +<tr><td colspan=2><br><h2>Static Private Attributes</h2></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#r0">_CosTableInitialized</a> = false</td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#r1">_PerlinNoiseTableInitialized</a> = false</td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#r2">_CosTable</a> [256]</td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#r3">_SinTable</a> [256]</td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="structNL3D_1_1CPSUtil.html#r4">_PerlinNoiseTab</a> [1024]</td></tr> +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> +This struct contains utility functions used by the particle system. +<p> +<dl compact><dt><b> +Author: </b><dd> +Nicolas Vizerie , Nevrax France </dl><dl compact><dt><b> +Date: </b><dd> +2001 </dl> +<p> + +<p> +Definition at line <a class="el" href="ps__util_8h-source.html#l00057">57</a> of file <a class="el" href="ps__util_8h-source.html">ps_util.h</a>.<hr><h2>Member Function Documentation</h2> +<a name="d6" doxytag="NL3D::CPSUtil::addRadiusToAABBox"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::addRadiusToAABBox </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNLMISC_1_1CAABBox.html">NLMISC::CAABBox</a> & </td> + <td class="mdname" nowrap> <em>box</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>radius</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +enlarge a bounding box by the specified radius. +<p> + +<p> +Definition at line <a class="el" href="ps__util_8h-source.html#l00178">178</a> of file <a class="el" href="ps__util_8h-source.html">ps_util.h</a>. +<p> +References <a class="el" href="aabbox_8h-source.html#l00095">NLMISC::CAABBox::getHalfSize</a>, and <a class="el" href="aabbox_8h-source.html#l00071">NLMISC::CAABBox::setHalfSize</a>. </td> + </tr> +</table> +<a name="d14" doxytag="NL3D::CPSUtil::buildPerlinNoise"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float NL3D::CPSUtil::buildPerlinNoise </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>pos</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a> </td> + <td class="mdname" nowrap> <em>nbOctaves</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +compute a perlin noise value, that will range from [0 to 1] The first octave has the unit size. +<p> +<dl compact><dt><b> +See also: </b><dd> +<a class="el" href="structNL3D_1_1CPSUtil.html#d15">initPerlinNoiseTable</a>() </dl> +<p> +Definition at line <a class="el" href="ps__util_8h-source.html#l00237">237</a> of file <a class="el" href="ps__util_8h-source.html">ps_util.h</a>. +<p> +References <a class="el" href="ps__util_8cpp-source.html#l00058">_PerlinNoiseTableInitialized</a>, <a class="el" href="ps__util_8h-source.html#l00191">getInterpolatedNoise</a>, and <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td> + </tr> +</table> +<a name="d10" doxytag="NL3D::CPSUtil::buildSchmidtBasis"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::buildSchmidtBasis </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>v</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> & </td> + <td class="mdname" nowrap> <em>dest</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +build a basis from a vector using Schmidt orthogonalization method. +<p> +<dl compact><dt><b> +Parameters: </b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em>v</em> </td><td> +K axis in the resulting basis </td></tr> +<tr><td valign=top><em>dest</em> </td><td> +The matrix containing the result. Only the rotation part is modified </td></tr> +</table> +</dl> +<p> +Definition at line <a class="el" href="ps__util_8cpp-source.html#l00254">254</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +References <a class="el" href="matrix_8cpp-source.html#l00209">NLMISC::CMatrix::setRot</a>. +<p> +Referenced by <a class="el" href="ps__util_8cpp-source.html#l00166">displayArrow</a>. </td> + </tr> +</table> +<a name="d5" doxytag="NL3D::CPSUtil::display3DQuad"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::display3DQuad </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> & </td> + <td class="mdname" nowrap> <em>driver</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>c1</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>c2</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>c3</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>c4</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> </td> + <td class="mdname" nowrap> <em>color</em> = <a class="el" href="classNLMISC_1_1CRGBA.html#p7">NLMISC::CRGBA::White</a></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +display a 3d quad in wireline, by using the 4 gicen corners. +<p> + +<p> +Definition at line <a class="el" href="ps__util_8cpp-source.html#l00380">380</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. </td> + </tr> +</table> +<a name="d8" doxytag="NL3D::CPSUtil::displayArrow"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::displayArrow </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> * </td> + <td class="mdname" nowrap> <em>driver</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>start</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>v</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>size</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> </td> + <td class="mdname" nowrap> <em>col1</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> </td> + <td class="mdname" nowrap> <em>col2</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +display an arrow (the same that is used with displayBasis) The user must setup the model matrix himself. +<p> +<dl compact><dt><b> +Parameters: </b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em>driver</em> </td><td> +the driver used for rendering </td></tr> +<tr><td valign=top><em>start</em> </td><td> +start point of the arrow </td></tr> +<tr><td valign=top><em>v</em> </td><td> +direction of the arrow </td></tr> +<tr><td valign=top><em>size</em> </td><td> +size of the arrow (will be drawn as size * v) </td></tr> +<tr><td valign=top><em>col1</em> </td><td> +color of the arrow start </td></tr> +<tr><td valign=top><em>col2</em> </td><td> +color of the arrow end </td></tr> +</table> +</dl> +<p> +Definition at line <a class="el" href="ps__util_8cpp-source.html#l00166">166</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +References <a class="el" href="ps__util_8cpp-source.html#l00254">buildSchmidtBasis</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00234">v</a>. +<p> +Referenced by <a class="el" href="ps__util_8cpp-source.html#l00209">displayBasis</a>. </td> + </tr> +</table> +<a name="d7" doxytag="NL3D::CPSUtil::displayBasis"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::displayBasis </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> * </td> + <td class="mdname" nowrap> <em>driver</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> & </td> + <td class="mdname" nowrap> <em>modelMat</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> & </td> + <td class="mdname" nowrap> <em>m</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>size</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNL3D_1_1CFontGenerator.html">CFontGenerator</a> & </td> + <td class="mdname" nowrap> <em>fg</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNL3D_1_1CFontManager.html">CFontManager</a> & </td> + <td class="mdname" nowrap> <em>fm</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +display a basis using the given matrix. The model matrix must be restored after this call. +<p> + +<p> +Definition at line <a class="el" href="ps__util_8cpp-source.html#l00209">209</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +References <a class="el" href="ps__util_8cpp-source.html#l00166">displayArrow</a>, <a class="el" href="matrix_8cpp-source.html#l00419">NLMISC::CMatrix::getI</a>, <a class="el" href="matrix_8cpp-source.html#l00427">NLMISC::CMatrix::getJ</a>, <a class="el" href="matrix_8cpp-source.html#l00435">NLMISC::CMatrix::getK</a>, and <a class="el" href="matrix_8h-source.html#l00188">NLMISC::CMatrix::getPos</a>. </td> + </tr> +</table> +<a name="d1" doxytag="NL3D::CPSUtil::displayBBox"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::displayBBox </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> * </td> + <td class="mdname" nowrap> <em>driver</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CAABBox.html">NLMISC::CAABBox</a> & </td> + <td class="mdname" nowrap> <em>box</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> </td> + <td class="mdname" nowrap> <em>col</em> = <a class="el" href="classNLMISC_1_1CRGBA.html#p7">NLMISC::CRGBA::White</a></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +this draw a bounding box. +<p> + +<p> +Definition at line <a class="el" href="ps__util_8cpp-source.html#l00115">115</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +References <a class="el" href="classNL3D_1_1IDriver.html#a38">NL3D::IDriver::activeVertexBuffer</a>, <a class="el" href="aabbox_8h-source.html#l00091">NLMISC::CAABBox::getMax</a>, <a class="el" href="aabbox_8h-source.html#l00090">NLMISC::CAABBox::getMin</a>, <a class="el" href="bit__set_8cpp-source.html#l00038">min</a>, and <a class="el" href="classNL3D_1_1IDriver.html#a41">NL3D::IDriver::render</a>. </td> + </tr> +</table> +<a name="d4" doxytag="NL3D::CPSUtil::displayCylinder"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::displayCylinder </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> & </td> + <td class="mdname" nowrap> <em>driver</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>center</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> & </td> + <td class="mdname" nowrap> <em>mat</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>dim</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a> </td> + <td class="mdname" nowrap> <em>nbSubdiv</em> = 32, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> </td> + <td class="mdname" nowrap> <em>color</em> = <a class="el" href="classNLMISC_1_1CRGBA.html#p7">NLMISC::CRGBA::White</a></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +draw a cylinder (not filled). +<p> +<dl compact><dt><b> +Parameters: </b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em>dim</em> </td><td> +dimension of the cylinder along each axis, packed in a vector </td></tr> +</table> +</dl> +<p> +Definition at line <a class="el" href="ps__util_8cpp-source.html#l00348">348</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. </td> + </tr> +</table> +<a name="d3" doxytag="NL3D::CPSUtil::displayDisc"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::displayDisc </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> & </td> + <td class="mdname" nowrap> <em>driver</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>radius</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>center</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> & </td> + <td class="mdname" nowrap> <em>mat</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a> </td> + <td class="mdname" nowrap> <em>nbSubdiv</em> = 32, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> </td> + <td class="mdname" nowrap> <em>color</em> = <a class="el" href="classNLMISC_1_1CRGBA.html#p7">NLMISC::CRGBA::White</a></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +draw a disc (not filled). +<p> +<dl compact><dt><b> +Parameters: </b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em>mat</em> </td><td> +: a matrix, whose K vector is normal to the plane containing the disc </td></tr> +</table> +</dl> +<p> +Definition at line <a class="el" href="ps__util_8cpp-source.html#l00329">329</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. </td> + </tr> +</table> +<a name="d2" doxytag="NL3D::CPSUtil::displaySphere"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::displaySphere </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> & </td> + <td class="mdname" nowrap> <em>driver</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>radius</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>center</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a> </td> + <td class="mdname" nowrap> <em>nbSubdiv</em> = 4, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> </td> + <td class="mdname" nowrap> <em>color</em> = <a class="el" href="classNLMISC_1_1CRGBA.html#p7">NLMISC::CRGBA::White</a></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +draw a sphere. +<p> + +<p> +Definition at line <a class="el" href="ps__util_8cpp-source.html#l00283">283</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +References <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">x</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">y</a>. </td> + </tr> +</table> +<a name="d11" doxytag="NL3D::CPSUtil::getCos"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float NL3D::CPSUtil::getCos </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>angle</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline, static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get a cosine from the fast cosine table (which must be have initialised with initFastCosNSinTable). +<p> +256 <=> 2 Pi +<p> +Definition at line <a class="el" href="ps__util_8h-source.html#l00121">121</a> of file <a class="el" href="ps__util_8h-source.html">ps_util.h</a>. +<p> +References <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td> + </tr> +</table> +<a name="f5" doxytag="NL3D::CPSUtil::getInterpolatedNoise"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float NL3D::CPSUtil::getInterpolatedNoise </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>pos</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline, static, private]</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="ps__util_8h-source.html#l00191">191</a> of file <a class="el" href="ps__util_8h-source.html">ps_util.h</a>. +<p> +References <a class="el" href="ps__util_8h-source.html#l00185">getPerlinNoise</a>, <a class="el" href="vector_8h-source.html#l00051">NLMISC::CVector::x</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">x</a>, <a class="el" href="vector_8h-source.html#l00051">NLMISC::CVector::y</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">y</a>, <a class="el" href="vector_8h-source.html#l00051">NLMISC::CVector::z</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">z</a>. +<p> +Referenced by <a class="el" href="ps__util_8h-source.html#l00237">buildPerlinNoise</a>. </td> + </tr> +</table> +<a name="f6" doxytag="NL3D::CPSUtil::getPerlinNoise"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float NL3D::CPSUtil::getPerlinNoise </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a> </td> + <td class="mdname" nowrap> <em>x</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a> </td> + <td class="mdname" nowrap> <em>y</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a> </td> + <td class="mdname" nowrap> <em>z</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, static, private]</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="ps__util_8h-source.html#l00185">185</a> of file <a class="el" href="ps__util_8h-source.html">ps_util.h</a>. +<p> +References <a class="el" href="ps__util_8cpp-source.html#l00063">_PerlinNoiseTab</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">x</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">y</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">z</a>. +<p> +Referenced by <a class="el" href="ps__util_8h-source.html#l00191">getInterpolatedNoise</a>. </td> + </tr> +</table> +<a name="d12" doxytag="NL3D::CPSUtil::getSin"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float NL3D::CPSUtil::getSin </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>angle</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline, static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get a cosine from the fast cosine table (which must be have initialised with initFastCosNSinTable). +<p> +256 <=> 2 Pi +<p> +Definition at line <a class="el" href="ps__util_8h-source.html#l00130">130</a> of file <a class="el" href="ps__util_8h-source.html">ps_util.h</a>. +<p> +References <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td> + </tr> +</table> +<a name="d13" doxytag="NL3D::CPSUtil::initFastCosNSinTable"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::initFastCosNSinTable </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Init the table for cosine and sinus lookup. +<p> +<dl compact><dt><b> +See also: </b><dd> +<a class="el" href="structNL3D_1_1CPSUtil.html#d11">getCos</a>(), <a class="el" href="structNL3D_1_1CPSUtil.html#d12">getSin</a>() </dl> +<p> +Definition at line <a class="el" href="ps__util_8cpp-source.html#l00081">81</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +References <a class="el" href="ps__util_8cpp-source.html#l00061">_CosTable</a>, <a class="el" href="ps__util_8cpp-source.html#l00057">_CosTableInitialized</a>, and <a class="el" href="ps__util_8cpp-source.html#l00062">_SinTable</a>. +<p> +Referenced by <a class="el" href="ps__util_8cpp-source.html#l00095">registerSerialParticleSystem</a>. </td> + </tr> +</table> +<a name="d15" doxytag="NL3D::CPSUtil::initPerlinNoiseTable"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::initPerlinNoiseTable </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +init the table used by perlin noise. +<p> +This must be used before any call to buildPerlinNoise +<p> +Definition at line <a class="el" href="ps__util_8cpp-source.html#l00069">69</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +References <a class="el" href="ps__util_8cpp-source.html#l00063">_PerlinNoiseTab</a>, and <a class="el" href="ps__util_8cpp-source.html#l00058">_PerlinNoiseTableInitialized</a>. +<p> +Referenced by <a class="el" href="ps__util_8cpp-source.html#l00095">registerSerialParticleSystem</a>. </td> + </tr> +</table> +<a name="d9" doxytag="NL3D::CPSUtil::print"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::print </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNL3D_1_1IDriver.html">NL3D::IDriver</a> * </td> + <td class="mdname" nowrap> <em>driver</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const std::string & </td> + <td class="mdname" nowrap> <em>text</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNL3D_1_1CFontGenerator.html">CFontGenerator</a> & </td> + <td class="mdname" nowrap> <em>fg</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNL3D_1_1CFontManager.html">CFontManager</a> & </td> + <td class="mdname" nowrap> <em>fm</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> & </td> + <td class="mdname" nowrap> <em>pos</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>size</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +display a string at the given position. The model matrix must be restored after this call. +<p> + +<p> +Definition at line <a class="el" href="ps__util_8cpp-source.html#l00232">232</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +References <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td> + </tr> +</table> +<a name="f4" doxytag="NL3D::CPSUtil::registerAttribs"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::registerAttribs </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [static, private]</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="ps__register__attribs_8cpp-source.html#l00040">40</a> of file <a class="el" href="ps__register__attribs_8cpp-source.html">ps_register_attribs.cpp</a>. +<p> +References <a class="el" href="ps__color_8cpp-source.html#l00047">NL3D::PSRegisterColorAttribs</a>, <a class="el" href="ps__float_8cpp-source.html#l00199">NL3D::PSRegisterFloatAttribs</a>, <a class="el" href="ps__int_8cpp-source.html#l00054">NL3D::PSRegisterIntAttribs</a>, and <a class="el" href="ps__plane__basis__maker_8cpp-source.html#l00253">NL3D::PSRegisterPlaneBasisAttribs</a>. +<p> +Referenced by <a class="el" href="ps__util_8cpp-source.html#l00095">registerSerialParticleSystem</a>. </td> + </tr> +</table> +<a name="f2" doxytag="NL3D::CPSUtil::registerEmitters"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::registerEmitters </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [static, private]</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="ps__register__emitters_8cpp-source.html#l00035">35</a> of file <a class="el" href="ps__register__emitters_8cpp-source.html">ps_register_emitters.cpp</a>. +<p> +References <a class="el" href="class__registry_8h-source.html#l00123">NLMISC_REGISTER_CLASS</a>. +<p> +Referenced by <a class="el" href="ps__util_8cpp-source.html#l00095">registerSerialParticleSystem</a>. </td> + </tr> +</table> +<a name="f0" doxytag="NL3D::CPSUtil::registerForces"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::registerForces </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [static, private]</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="ps__register__forces_8cpp-source.html#l00035">35</a> of file <a class="el" href="ps__register__forces_8cpp-source.html">ps_register_forces.cpp</a>. +<p> +References <a class="el" href="class__registry_8h-source.html#l00123">NLMISC_REGISTER_CLASS</a>. +<p> +Referenced by <a class="el" href="ps__util_8cpp-source.html#l00095">registerSerialParticleSystem</a>. </td> + </tr> +</table> +<a name="f1" doxytag="NL3D::CPSUtil::registerParticles"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::registerParticles </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [static, private]</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="ps__register__particles_8cpp-source.html#l00036">36</a> of file <a class="el" href="ps__register__particles_8cpp-source.html">ps_register_particles.cpp</a>. +<p> +References <a class="el" href="class__registry_8h-source.html#l00123">NLMISC_REGISTER_CLASS</a>. +<p> +Referenced by <a class="el" href="ps__util_8cpp-source.html#l00095">registerSerialParticleSystem</a>. </td> + </tr> +</table> +<a name="d0" doxytag="NL3D::CPSUtil::registerSerialParticleSystem"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::registerSerialParticleSystem </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +register the classes of the system mus be called when serializing. +<p> + +<p> +Definition at line <a class="el" href="ps__util_8cpp-source.html#l00095">95</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +References <a class="el" href="ps__util_8cpp-source.html#l00081">initFastCosNSinTable</a>, <a class="el" href="ps__util_8cpp-source.html#l00069">initPerlinNoiseTable</a>, <a class="el" href="class__registry_8h-source.html#l00123">NLMISC_REGISTER_CLASS</a>, <a class="el" href="ps__register__attribs_8cpp-source.html#l00040">registerAttribs</a>, <a class="el" href="ps__register__emitters_8cpp-source.html#l00035">registerEmitters</a>, <a class="el" href="ps__register__forces_8cpp-source.html#l00035">registerForces</a>, <a class="el" href="ps__register__particles_8cpp-source.html#l00036">registerParticles</a>, and <a class="el" href="ps__register__zones_8cpp-source.html#l00035">registerZones</a>. </td> + </tr> +</table> +<a name="f3" doxytag="NL3D::CPSUtil::registerZones"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSUtil::registerZones </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [static, private]</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="ps__register__zones_8cpp-source.html#l00035">35</a> of file <a class="el" href="ps__register__zones_8cpp-source.html">ps_register_zones.cpp</a>. +<p> +References <a class="el" href="class__registry_8h-source.html#l00123">NLMISC_REGISTER_CLASS</a>. +<p> +Referenced by <a class="el" href="ps__util_8cpp-source.html#l00095">registerSerialParticleSystem</a>. </td> + </tr> +</table> +<hr><h2>Member Data Documentation</h2> +<a name="r2" doxytag="NL3D::CPSUtil::_CosTable"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float NL3D::CPSUtil::_CosTable<code> [static, 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="ps__util_8cpp-source.html#l00061">61</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +Referenced by <a class="el" href="ps__util_8cpp-source.html#l00081">initFastCosNSinTable</a>. </td> + </tr> +</table> +<a name="r0" doxytag="NL3D::CPSUtil::_CosTableInitialized"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NL3D::CPSUtil::_CosTableInitialized = false<code> [static, 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="ps__util_8cpp-source.html#l00057">57</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +Referenced by <a class="el" href="ps__util_8cpp-source.html#l00081">initFastCosNSinTable</a>. </td> + </tr> +</table> +<a name="r4" doxytag="NL3D::CPSUtil::_PerlinNoiseTab"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float NL3D::CPSUtil::_PerlinNoiseTab<code> [static, 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="ps__util_8cpp-source.html#l00063">63</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +Referenced by <a class="el" href="ps__util_8h-source.html#l00185">getPerlinNoise</a>, and <a class="el" href="ps__util_8cpp-source.html#l00069">initPerlinNoiseTable</a>. </td> + </tr> +</table> +<a name="r1" doxytag="NL3D::CPSUtil::_PerlinNoiseTableInitialized"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NL3D::CPSUtil::_PerlinNoiseTableInitialized = false<code> [static, 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="ps__util_8cpp-source.html#l00058">58</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +Referenced by <a class="el" href="ps__util_8h-source.html#l00237">buildPerlinNoise</a>, and <a class="el" href="ps__util_8cpp-source.html#l00069">initPerlinNoiseTable</a>. </td> + </tr> +</table> +<a name="r3" doxytag="NL3D::CPSUtil::_SinTable"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float NL3D::CPSUtil::_SinTable<code> [static, 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="ps__util_8cpp-source.html#l00062">62</a> of file <a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a>. +<p> +Referenced by <a class="el" href="ps__util_8cpp-source.html#l00081">initFastCosNSinTable</a>. </td> + </tr> +</table> +<hr>The documentation for this struct was generated from the following files:<ul> +<li><a class="el" href="ps__util_8h-source.html">ps_util.h</a><li><a class="el" href="ps__register__attribs_8cpp-source.html">ps_register_attribs.cpp</a><li><a class="el" href="ps__register__emitters_8cpp-source.html">ps_register_emitters.cpp</a><li><a class="el" href="ps__register__forces_8cpp-source.html">ps_register_forces.cpp</a><li><a class="el" href="ps__register__particles_8cpp-source.html">ps_register_particles.cpp</a><li><a class="el" href="ps__register__zones_8cpp-source.html">ps_register_zones.cpp</a><li><a class="el" href="ps__util_8cpp-source.html">ps_util.cpp</a></ul> + + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |