source: GTP/trunk/App/Demos/Illum/Rain/docs/html/CommonRain_8h-source.html @ 2221

Revision 2221, 7.0 KB checked in by plemenos, 17 years ago (diff)
  • Property svn:executable set to *
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>gametools-rain: CommonRain.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.4.6 -->
8<div class="tabs">
9  <ul>
10    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11    <li><a href="annotated.html"><span>Classes</span></a></li>
12    <li id="current"><a href="files.html"><span>Files</span></a></li>
13  </ul></div>
14<h1>CommonRain.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
15<a name="l00003"></a>00003 <span class="comment">//</span>
16<a name="l00004"></a>00004 <span class="comment">//              Realistic rain real-time simulation program</span>
17<a name="l00005"></a>00005 <span class="comment">//</span>
18<a name="l00006"></a>00006 <span class="comment">//              Pierre Rousseau</span>
19<a name="l00007"></a>00007 <span class="comment">//</span>
20<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">//</span>
21<a name="l00010"></a>00010 <span class="comment">//              Global definitions</span>
22<a name="l00011"></a>00011 <span class="comment">//</span>
23<a name="l00013"></a>00013 <span class="comment"></span>
24<a name="l00014"></a>00014
25<a name="l00015"></a>00015
26<a name="l00016"></a>00016 <span class="preprocessor">#ifndef __COMMON_RAIN__</span>
27<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#define __COMMON_RAIN__</span>
28<a name="l00018"></a>00018 <span class="preprocessor"></span>
29<a name="l00019"></a>00019
30<a name="l00023"></a>00023
31<a name="l00024"></a>00024 <span class="comment">// currently incompatible with STREAKS or LIGHT_EXTENSION :</span>
32<a name="l00025"></a>00025 <span class="comment">//#define SNOW</span>
33<a name="l00026"></a>00026
34<a name="l00027"></a>00027 <span class="preprocessor">#ifndef SNOW</span>
35<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="comment">//#define STREAKS</span>
36<a name="l00029"></a>00029
37<a name="l00030"></a>00030 <span class="preprocessor">#define LIGHT_EXTENSION</span>
38<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
39<a name="l00032"></a>00032 <span class="preprocessor"></span>
40<a name="l00033"></a>00033
41<a name="l00037"></a>00037 <span class="comment">// size of the "render to texture" : if using frame buffer copy, must be less than the frame buffer size</span>
42<a name="l00038"></a>00038 <span class="preprocessor">#define RTTSIZE 512</span>
43<a name="l00039"></a>00039 <span class="preprocessor"></span>
44<a name="l00040"></a>00040 <span class="preprocessor">#define _PI 3.1415926535</span>
45<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define FOVyCam (_PI/3.0)</span>
46<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#define FOVyRtt (15.0 * _PI / 18.0)</span>
47<a name="l00043"></a>00043 <span class="preprocessor"></span>
48<a name="l00044"></a>00044 <span class="comment">// arbitrary unit = 0.1m</span>
49<a name="l00045"></a>00045 <span class="preprocessor">#define HAUTEUR_OBSERVATEUR 18.0</span>
50<a name="l00046"></a>00046 <span class="preprocessor"></span>
51<a name="l00047"></a>00047
52<a name="l00048"></a>00048
53<a name="l00053"></a>00053
54<a name="l00054"></a>00054
55<a name="l00055"></a>00055 <span class="preprocessor">#define PARTICLE_POSITION_TEXTURE_NAME          "floating_point_RTT_ping"</span>
56<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#define PARTICLE_POSITION_BACKUP_TEXTURE_NAME   "floating_point_RTT_pong"</span>
57<a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#define PARTICLE_POSITION_INIT_TEXTURE_NAME     "floating_point_initializer"</span>
58<a name="l00058"></a>00058 <span class="preprocessor"></span>
59<a name="l00059"></a>00059 <span class="preprocessor">#define STATIC_GEOMETRY_NAME    "billboards_in_vertex_buffer"</span>
60<a name="l00060"></a>00060 <span class="preprocessor"></span>
61<a name="l00061"></a>00061
62<a name="l00062"></a>00062 <span class="preprocessor">#define LIGHT_INFO_TEXTURE_NAME         "light_information_texture"</span>
63<a name="l00063"></a>00063 <span class="preprocessor"></span>
64<a name="l00064"></a>00064 <span class="preprocessor">#define BILLBOARD_MESH_NAME             "cloned_manual_mesh"</span>
65<a name="l00065"></a>00065 <span class="preprocessor"></span>
66<a name="l00066"></a>00066 <span class="preprocessor">#define RAIN_MATERIAL_NAME              "rain_system_material"</span>
67<a name="l00067"></a>00067 <span class="preprocessor"></span>
68<a name="l00068"></a>00068 <span class="preprocessor">#define REFRACT_RTT_NAME                "refract_rtt"</span>
69<a name="l00069"></a>00069 <span class="preprocessor"></span>
70<a name="l00070"></a>00070
71<a name="l00071"></a>00071 <span class="preprocessor">#define PARTICLES_MIN_X         -2000</span>
72<a name="l00072"></a>00072 <span class="preprocessor"></span><span class="preprocessor">#define PARTICLES_MAX_X          2000</span>
73<a name="l00073"></a>00073 <span class="preprocessor"></span><span class="preprocessor">#define PARTICLES_MIN_Y           -10</span>
74<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor">#define PARTICLES_MAX_Y           100</span>
75<a name="l00075"></a>00075 <span class="preprocessor"></span><span class="preprocessor">#define PARTICLES_MIN_Z         -2000</span>
76<a name="l00076"></a>00076 <span class="preprocessor"></span><span class="preprocessor">#define PARTICLES_MAX_Z          2000</span>
77<a name="l00077"></a>00077 <span class="preprocessor"></span>
78<a name="l00078"></a>00078
79<a name="l00079"></a>00079
80<a name="l00080"></a>00080 <span class="preprocessor">#define VIS_PARTICLE_BOX_MIN_X          -50</span>
81<a name="l00081"></a>00081 <span class="preprocessor"></span><span class="preprocessor">#define VIS_PARTICLE_BOX_MAX_X           50</span>
82<a name="l00082"></a>00082 <span class="preprocessor"></span><span class="preprocessor">#define VIS_PARTICLE_BOX_MIN_Y          -20</span>
83<a name="l00083"></a>00083 <span class="preprocessor"></span><span class="preprocessor">#define VIS_PARTICLE_BOX_MAX_Y           80</span>
84<a name="l00084"></a>00084 <span class="preprocessor"></span><span class="preprocessor">#define VIS_PARTICLE_BOX_MIN_Z          -50</span>
85<a name="l00085"></a>00085 <span class="preprocessor"></span><span class="preprocessor">#define VIS_PARTICLE_BOX_MAX_Z           50</span>
86<a name="l00086"></a>00086 <span class="preprocessor"></span>
87<a name="l00087"></a>00087
88<a name="l00088"></a>00088 <span class="preprocessor">#endif // __COMMON_RAIN__</span>
89</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed May 17 16:55:30 2006 for gametools-rain by&nbsp;
90<a href="http://www.doxygen.org/index.html">
91<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
92</body>
93</html>
Note: See TracBrowser for help on using the repository browser.