Revision c638c1b0
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/Distorted.java | ||
---|---|---|
83 | 83 |
static int mainProgramH, postProgramH; |
84 | 84 |
|
85 | 85 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
86 |
// private: hide this from Javadoc |
|
86 | 87 |
|
87 | 88 |
private Distorted() |
88 | 89 |
{ |
89 | 90 |
|
90 | 91 |
} |
91 | 92 |
|
93 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
94 |
|
|
95 |
static DistortedFramebuffer getFBO(int w, int h) |
|
96 |
{ |
|
97 |
// TODO: a static factory of Framebuffers. |
|
98 |
|
|
99 |
return null; |
|
100 |
} |
|
101 |
|
|
92 | 102 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
93 | 103 |
|
94 | 104 |
static boolean isInitialized() |
... | ... | |
96 | 106 |
return (mMainProgramAttributes!=null); |
97 | 107 |
} |
98 | 108 |
|
109 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
110 |
/** |
|
111 |
* Release all internal memory caches (in particular the FBOs used as buffers for postprocessing) |
|
112 |
*/ |
|
113 |
public static void clean() |
|
114 |
{ |
|
115 |
// TODO |
|
116 |
} |
|
117 |
|
|
99 | 118 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
100 | 119 |
/** |
101 | 120 |
* When OpenGL context gets created, you need to call this method so that the library can initialise its internal data structures. |
Also available in: Unified diff
Further progress with Postprocessing. Now the missing bits are:
- implement Distorted.getFBO()
- implement Distorted.clean()
- improve compilation of DistortedPrograms so that the NUM_POSTPROCESSING and names of POSTPROCESSING effects will be #defined.