Revision 6537ba91
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/DistortedEffectQueues.java | ||
---|---|---|
170 | 170 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
171 | 171 |
/** |
172 | 172 |
* Draw the DistortedObject to the location specified by current Matrix effects. |
173 |
* |
|
173 |
* <p> |
|
174 |
* Must be called from a thread holding OpenGL Context |
|
175 |
* |
|
174 | 176 |
* @param currTime current time, in milliseconds. |
175 | 177 |
* This gets passed on to Dynamics inside the Effects that are currently applied to the |
176 | 178 |
* Object. |
... | ... | |
188 | 190 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
189 | 191 |
/** |
190 | 192 |
* Draw the DistortedObject to the Framebuffer passed. |
193 |
* <p> |
|
194 |
* Must be called from a thread holding OpenGL Context |
|
191 | 195 |
* |
192 | 196 |
* @param currTime Current time, in milliseconds. |
193 | 197 |
* @param df Framebuffer to render this to. |
src/main/java/org/distorted/library/DistortedFramebuffer.java | ||
---|---|---|
95 | 95 |
} |
96 | 96 |
|
97 | 97 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
98 |
// must be called form a thread holding OpenGL Context
|
|
98 |
// Must be called from a thread holding OpenGL Context
|
|
99 | 99 |
|
100 | 100 |
private boolean createFBO() |
101 | 101 |
{ |
... | ... | |
130 | 130 |
} |
131 | 131 |
|
132 | 132 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
133 |
// must be called from a thread holding OpenGL Context
|
|
133 |
// Must be called from a thread holding OpenGL Context
|
|
134 | 134 |
|
135 | 135 |
private void deleteFBO() |
136 | 136 |
{ |
... | ... | |
294 | 294 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
295 | 295 |
/** |
296 | 296 |
* Set this as the Framebuffer to write to. |
297 |
* <p> |
|
298 |
* Must be called from a thread holding OpenGL Context |
|
297 | 299 |
*/ |
298 | 300 |
public void setAsOutput() |
299 | 301 |
{ |
... | ... | |
305 | 307 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
306 | 308 |
/** |
307 | 309 |
* Set this as the Framebuffer to read from. |
310 |
* <p> |
|
311 |
* Must be called from a thread holding OpenGL Context |
|
308 | 312 |
*/ |
309 | 313 |
public void setAsInput() |
310 | 314 |
{ |
src/main/java/org/distorted/library/DistortedObjectTree.java | ||
---|---|---|
463 | 463 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
464 | 464 |
/** |
465 | 465 |
* Draws the Node, and all its children, to the default framebuffer 0 (i.e. the screen). |
466 |
* |
|
466 |
* <p> |
|
467 |
* Must be called from a thread holding OpenGL Context |
|
468 |
* |
|
467 | 469 |
* @param currTime Current time, in milliseconds. |
468 | 470 |
*/ |
469 | 471 |
public void draw(long currTime) |
... | ... | |
478 | 480 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
479 | 481 |
/** |
480 | 482 |
* Draws the Node, and all its children, to the Framebuffer passed. |
483 |
* <p> |
|
484 |
* Must be called from a thread holding OpenGL Context |
|
481 | 485 |
* |
482 | 486 |
* @param currTime Current time, in milliseconds. |
483 | 487 |
* @param df Framebuffer to render this to. |
Also available in: Unified diff
Minor.