Revision 09ab7524
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedFramebuffer.java | ||
---|---|---|
154 | 154 |
} |
155 | 155 |
|
156 | 156 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
157 |
// create 'system' Framebuffers, i.e. those that are used internally by the library. |
|
158 |
// Those do not get removed in onDestroy(); |
|
157 |
// create SYSTEM or TREE framebuffers (those are just like normal FBOs, just hold information |
|
158 |
// that they were autocreated only for the Library's internal purposes (SYSTEM) or for using |
|
159 |
// inside a Tree of DistortedNodes (TREE) |
|
160 |
// SYSTEM surfaces do not get removed in onDestroy(). |
|
159 | 161 |
|
160 |
DistortedFramebuffer(boolean depthEnabled, int width, int height) |
|
162 |
DistortedFramebuffer(boolean depthEnabled, int type, int width, int height)
|
|
161 | 163 |
{ |
162 |
super(width,height,NOT_CREATED_YET, (depthEnabled ? NOT_CREATED_YET:DONT_CREATE),NOT_CREATED_YET, true);
|
|
164 |
super(width,height,NOT_CREATED_YET, (depthEnabled ? NOT_CREATED_YET:DONT_CREATE),NOT_CREATED_YET, type);
|
|
163 | 165 |
} |
164 | 166 |
|
165 | 167 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
175 | 177 |
@SuppressWarnings("unused") |
176 | 178 |
public DistortedFramebuffer(int width, int height, boolean depthEnabled) |
177 | 179 |
{ |
178 |
super(width,height,NOT_CREATED_YET,(depthEnabled ? NOT_CREATED_YET:DONT_CREATE),NOT_CREATED_YET,false);
|
|
180 |
super(width,height,NOT_CREATED_YET,(depthEnabled ? NOT_CREATED_YET:DONT_CREATE),NOT_CREATED_YET,TYPE_USER);
|
|
179 | 181 |
} |
180 | 182 |
|
181 | 183 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
189 | 191 |
@SuppressWarnings("unused") |
190 | 192 |
public DistortedFramebuffer(int width, int height) |
191 | 193 |
{ |
192 |
super(width,height,NOT_CREATED_YET,DONT_CREATE,NOT_CREATED_YET,false);
|
|
194 |
super(width,height,NOT_CREATED_YET,DONT_CREATE,NOT_CREATED_YET,TYPE_USER);
|
|
193 | 195 |
} |
194 | 196 |
|
195 | 197 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Introduce 3 types of Surfaces: System, Tree, User