Revision 65362dd4
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/DistortedFramebuffer.java | ||
---|---|---|
29 | 29 |
/** |
30 | 30 |
* Class which represents a OpenGL Framebuffer object. |
31 | 31 |
* <p> |
32 |
* User is able to create either WRITE-only Framebuffers from objects already constructed outside
|
|
33 |
* of the library (the first constructor; primary use case: the screen) or an offscreen READ-WRITE
|
|
32 |
* User is able to create either Framebuffers from objects already constructed outside |
|
33 |
* of the library (the first constructor; primary use case: the screen) or an offscreen |
|
34 | 34 |
* FBOs (used by the DistortedNode, but also can be used by external users of the library) |
35 | 35 |
* <p> |
36 | 36 |
* Also, keep all objects created in a static LinkedList. The point: we need to be able to mark |
37 | 37 |
* Framebuffers for deletion, and delete all marked objects later at a convenient time (that's |
38 | 38 |
* because we can only delete from a thread that holds the OpenGL context so here we provide a |
39 |
* framework where one is able to mark for deletion at any place and actual deletion takes place
|
|
39 |
* framework where one is able to mark for deletion at any time and actual deletion takes place
|
|
40 | 40 |
* on the next render). |
41 | 41 |
*/ |
42 | 42 |
public class DistortedFramebuffer |
... | ... | |
271 | 271 |
* to set the size of an not-yet-created Framebuffer of an object that has been created with the |
272 | 272 |
* second constructor. |
273 | 273 |
* <p> |
274 |
* Fully creating an object, rendering to it, then resizing mid-render is also possible. |
|
274 |
* Fully creating an object, rendering to it, then resizing mid-render is also possible. Actual |
|
275 |
* resize takes place on the next render. |
|
275 | 276 |
* |
276 | 277 |
* @param width The new width. |
277 | 278 |
* @param height The new height. |
Also available in: Unified diff
Various relatively minor cleanups.