aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02937.html
blob: a5d827eeeddd668aac90072a63adc37b1e082387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
<!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::CMotionBlur 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&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a>  | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>NL3D::CMotionBlur Class Reference</h1><code>#include &lt;<a class="el" href="a06041.html">motion_blur.h</a>&gt;</code>
<p>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This class help perfoming motion blur on a portion of the screen <dl compact><dt><b>Author:</b></dt><dd>Nicolas Vizerie <p>
Nevrax France </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="a06041.html#l00045">45</a> of file <a class="el" href="a06041.html">motion_blur.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02937.html#NL3D_1_1CMotionBlura0">CMotionBlur</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02937.html#NL3D_1_1CMotionBlura1">performMotionBlur</a> (<a class="el" href="a02434.html">IDriver</a> *driver, float motionBlurAmount)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02937.html#NL3D_1_1CMotionBlura2">releaseMotionBlur</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">release the resources used by motion blur  <a href="#NL3D_1_1CMotionBlura2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02937.html#NL3D_1_1CMotionBlura3">startMotionBlur</a> (<a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a572">x</a>, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a573">y</a>, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a632">width</a>, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a633">height</a>)</td></tr>

<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02937.html#NL3D_1_1CMotionBlurp0">_H</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03408.html">NLMISC::CSmartPtr</a>&lt; <a class="el" href="a03487.html">ITexture</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02937.html#NL3D_1_1CMotionBlurp1">_Tex</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02937.html#NL3D_1_1CMotionBlurp2">_W</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02937.html#NL3D_1_1CMotionBlurp3">_X</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02937.html#NL3D_1_1CMotionBlurp4">_Y</a></td></tr>

</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NL3D_1_1CMotionBlura0" doxytag="NL3D::CMotionBlur::CMotionBlur" ></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::CMotionBlur::CMotionBlur </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06040.html#l00039">39</a> of file <a class="el" href="a06040.html">motion_blur.cpp</a>.
<p>
<div class="fragment"><pre>00039                          : <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp1">_Tex</a>(NULL), <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp3">_X</a>(0), <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp4">_Y</a>(0), <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp2">_W</a>(0), <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp0">_H</a>(0)
00040 {
00041 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CMotionBlura1" doxytag="NL3D::CMotionBlur::performMotionBlur" ></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::CMotionBlur::performMotionBlur </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02434.html">IDriver</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>driver</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>float&nbsp;</td>
          <td class="mdname" nowrap> <em>motionBlurAmount</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
perform motion blur, using the given driver This can only have been called between a startMotionBlur / releaseMotionBlur pair. It must be called after the scene has been drawn of course. WARNING : this change the projection matrix and the frustum in the driver. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>motionBlurAmount</em>&nbsp;</td><td>ranges from 0.f to 1.f. Blend using the following : motionBlurAmount * previous frame + (1 - motionBlurAmount) * current Frame buffer state</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a06040.html#l00062">62</a> of file <a class="el" href="a06040.html">motion_blur.cpp</a>.
<p>
References <a class="el" href="a06041.html#l00073">_H</a>, <a class="el" href="a06041.html#l00073">_W</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera2">NL3D::IDriver::activeVertexBuffer()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera6">NL3D::IDriver::copyFrameBufferToTexture()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera38">NL3D::IDriver::getWindowSize()</a>, <a class="el" href="a05646.html#l01013">height</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05586.html#l00349">NLMISC::raiseToNextPowerOf2()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera54">NL3D::IDriver::renderQuads()</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="a05641.html#l00071">NL3D::CMaterial::setDoubleSided()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera60">NL3D::IDriver::setFrustum()</a>, <a class="el" href="a06710.html#l00409">NL3D::CVertexBuffer::setNumVertices()</a>, <a class="el" href="a06711.html#l00600">NL3D::CVertexBuffer::setTexCoord()</a>, <a class="el" href="a05968.html#l00322">NL3D::CMaterial::setTexture()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera68">NL3D::IDriver::setupModelMatrix()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera72">NL3D::IDriver::setupViewMatrix()</a>, <a class="el" href="a06711.html#l00524">NL3D::CVertexBuffer::setVertexCoord()</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="a05641.html#l00247">NL3D::CMaterial::texEnvArg0Alpha()</a>, <a class="el" href="a05641.html#l00240">NL3D::CMaterial::texEnvOpAlpha()</a>, <a class="el" href="a05641.html#l00214">NL3D::CMaterial::texEnvOpRGB()</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l01013">width</a>.
<p>
<div class="fragment"><pre>00063 {
00064         <a class="code" href="a04199.html#a6">nlassert</a>(_Tex) ;  <span class="comment">//start motion blur has not been called !!</span>
00065         <a class="code" href="a04199.html#a6">nlassert</a>(driver) ;
00066         <a class="code" href="a04199.html#a6">nlassert</a>(motionBlurAmount &gt;= 0.f &amp;&amp; motionBlurAmount &lt;= 1.f) ;
00067         
00068         <span class="keyword">static</span> CVertexBuffer  vb ;
00069         vb.setVertexFormat(CVertexBuffer::PositionFlag | CVertexBuffer::TexCoord0Flag ) ;
00070         vb.setNumVertices(4) ;
00071 
00072         <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a632">width</a>, <a class="code" href="a04223.html#a633">height</a> ;
00073         driver-&gt;getWindowSize(width, height) ;
00074 
00075         <span class="keywordtype">float</span> widthRatio = <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp2">_W</a> / (<span class="keywordtype">float</span>) <a class="code" href="a05378.html#a262">NLMISC::raiseToNextPowerOf2</a> (_W) ;
00076         <span class="keywordtype">float</span> heightRatio = <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp0">_H</a> / (<span class="keywordtype">float</span>) <a class="code" href="a05378.html#a262">NLMISC::raiseToNextPowerOf2</a> (_H) ;
00077 
00078         driver-&gt;setFrustum(0, (<span class="keywordtype">float</span>) width, 0, (<span class="keywordtype">float</span>) height, -1, 1, <span class="keyword">false</span>) ;
00079 
00080         <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> sn = 0 ; sn &lt; 2 ; ++sn)
00081         {
00082                 vb.setTexCoord(0, sn, CUV(0, 0)) ; 
00083                 vb.setTexCoord(1, sn, CUV(widthRatio, 0)) ; 
00084                 vb.setTexCoord(2, sn, CUV(widthRatio, heightRatio)) ; 
00085                 vb.setTexCoord(3, sn, CUV(0, heightRatio)) ; 
00086         }
00087 
00088 
00089         <span class="keyword">static</span> CMaterial mbMat ;
00090         <span class="keyword">static</span> <span class="keywordtype">bool</span> matSetup = <span class="keyword">false</span> ; <span class="comment">// set to true when mbMat has Been setup</span>
00091         <span class="keywordflow">if</span> (!matSetup)
00092         {
00093                 mbMat.setBlend(<span class="keyword">true</span>) ;
00094                 mbMat.setBlendFunc(CMaterial::srcalpha, CMaterial::invsrcalpha) ;       
00095                 mbMat.setZWrite(<span class="keyword">false</span>) ;
00096                 mbMat.setZFunc(CMaterial::always) ;     
00097                 <span class="comment">// stage 0          </span>
00098                 mbMat.setTexture(0, _Tex) ;
00099                 mbMat.texEnvOpRGB(0, CMaterial::Replace );
00100 
00101                 mbMat.texEnvArg0Alpha(0, CMaterial::Diffuse, CMaterial::SrcAlpha);
00102                 mbMat.texEnvOpAlpha(0, CMaterial::Replace);
00103                 
00104                 mbMat.setDoubleSided(<span class="keyword">true</span>) ;
00105                 matSetup = <span class="keyword">true</span> ;
00106         }
00107 
00108 
00109         mbMat.setColor(<a class="code" href="a03337.html">CRGBA</a>(255, 255, 255, (<a class="code" href="a04558.html#a7">uint8</a>) (255.f * motionBlurAmount) ) ) ;            
00110 
00111 
00112         vb.setVertexCoord(0, CVector((<span class="keywordtype">float</span>) _X, 0, 0) ) ;
00113         vb.setVertexCoord(1, CVector((<span class="keywordtype">float</span>) (_X + _W), 0 ,0) ) ;
00114         vb.setVertexCoord(2, CVector((<span class="keywordtype">float</span>) (_X + _W), 0, (<span class="keywordtype">float</span>) (_Y + _H) ) );
00115         vb.setVertexCoord(3, CVector(0 , 0, (<span class="keywordtype">float</span>) (_Y + _H) ) ) ;
00116 
00117         driver-&gt;setupViewMatrix(CMatrix::Identity) ;
00118         driver-&gt;setupModelMatrix(CMatrix::Identity) ;
00119         
00120 
00121         driver-&gt;activeVertexBuffer(vb) ;
00122         driver-&gt;renderQuads(mbMat, 0, 1) ;
00123 
00124         <span class="comment">// blit back frame buffer to save this frame</span>
00125 
00126 
00127 
00128         driver-&gt;copyFrameBufferToTexture(_Tex, 0, 0, 0, _X, _Y, _W, _H) ;
00129         
00130 
00131 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CMotionBlura2" doxytag="NL3D::CMotionBlur::releaseMotionBlur" ></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::CMotionBlur::releaseMotionBlur </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
release the resources used by motion blur 
<p>

<p>
Definition at line <a class="el" href="a06040.html#l00056">56</a> of file <a class="el" href="a06040.html">motion_blur.cpp</a>.
<p>
References <a class="el" href="a06041.html#l00073">_H</a>, and <a class="el" href="a06041.html#l00073">_W</a>.
<p>
<div class="fragment"><pre>00057 {
00058         <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp1">_Tex</a> = NULL ;
00059         <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp3">_X</a> = <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp4">_Y</a> = <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp2">_W</a> = <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp0">_H</a> = 0 ;
00060 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CMotionBlura3" doxytag="NL3D::CMotionBlur::startMotionBlur" ></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::CMotionBlur::startMotionBlur </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>height</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Must be called before performing motion blur on a image sequence. Motion blur is performed on a rectangular area. 2 calls -&gt; nlassert. Once motion blur must be stopped, you must call releaseMotionBlur. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>x</em>&nbsp;</td><td>the x position of the top-left coener of the rectangle on which motion blur apply </td></tr>
    <tr><td valign=top><em>y</em>&nbsp;</td><td>the y position of the top-left coener of the rectangle on which motion blur apply </td></tr>
    <tr><td valign=top><em>width</em>&nbsp;</td><td>the width of the rectangle on which motion blur apply </td></tr>
    <tr><td valign=top><em>height</em>&nbsp;</td><td>the height of the rectangle on which motion blur apply </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a06040.html#l00045">45</a> of file <a class="el" href="a06040.html">motion_blur.cpp</a>.
<p>
References <a class="el" href="a06041.html#l00073">_H</a>, <a class="el" href="a06041.html#l00073">_W</a>, <a class="el" href="a05646.html#l01013">height</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05646.html#l01013">width</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
<p>
<div class="fragment"><pre>00046 {
00047         <a class="code" href="a04199.html#a6">nlassert</a>(width &gt; 0 &amp;&amp; height &gt; 0) ;
00048         <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp3">_X</a> = <a class="code" href="a04223.html#a572">x</a> ;
00049         <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp4">_Y</a> = <a class="code" href="a04223.html#a573">y</a> ;
00050         <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp2">_W</a> = <a class="code" href="a04223.html#a632">width</a> ;
00051         <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp0">_H</a> = <a class="code" href="a04223.html#a633">height</a> ;
00052         <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp1">_Tex</a> = <span class="keyword">new</span> CTextureBlank ;
00053         <a class="code" href="a02937.html#NL3D_1_1CMotionBlurp1">_Tex</a>-&gt;resize(NLMISC::raiseToNextPowerOf2(width), NLMISC::raiseToNextPowerOf2(height)) ;
00054 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NL3D_1_1CMotionBlurp0" doxytag="NL3D::CMotionBlur::_H" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02937.html#NL3D_1_1CMotionBlurp0">NL3D::CMotionBlur::_H</a><code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06041.html#l00073">73</a> of file <a class="el" href="a06041.html">motion_blur.h</a>.
<p>
Referenced by <a class="el" href="a06040.html#l00062">performMotionBlur()</a>, <a class="el" href="a06040.html#l00056">releaseMotionBlur()</a>, and <a class="el" href="a06040.html#l00045">startMotionBlur()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CMotionBlurp1" doxytag="NL3D::CMotionBlur::_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>&lt;<a class="el" href="a03487.html">ITexture</a>&gt; <a class="el" href="a02937.html#NL3D_1_1CMotionBlurp1">NL3D::CMotionBlur::_Tex</a><code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06041.html#l00072">72</a> of file <a class="el" href="a06041.html">motion_blur.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CMotionBlurp2" doxytag="NL3D::CMotionBlur::_W" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02937.html#NL3D_1_1CMotionBlurp2">NL3D::CMotionBlur::_W</a><code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06041.html#l00073">73</a> of file <a class="el" href="a06041.html">motion_blur.h</a>.
<p>
Referenced by <a class="el" href="a06040.html#l00062">performMotionBlur()</a>, <a class="el" href="a06040.html#l00056">releaseMotionBlur()</a>, and <a class="el" href="a06040.html#l00045">startMotionBlur()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CMotionBlurp3" doxytag="NL3D::CMotionBlur::_X" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02937.html#NL3D_1_1CMotionBlurp3">NL3D::CMotionBlur::_X</a><code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06041.html#l00073">73</a> of file <a class="el" href="a06041.html">motion_blur.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CMotionBlurp4" doxytag="NL3D::CMotionBlur::_Y" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02937.html#NL3D_1_1CMotionBlurp4">NL3D::CMotionBlur::_Y</a><code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06041.html#l00073">73</a> of file <a class="el" href="a06041.html">motion_blur.h</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a06041.html">motion_blur.h</a><li><a class="el" href="a06040.html">motion_blur.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:56:29 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>