Revision 040cd18c
Added by Leszek Koltunski almost 6 years ago
src/main/java/org/distorted/library/main/DistortedFramebuffer.java | ||
---|---|---|
31 | 31 |
public class DistortedFramebuffer extends DistortedOutputSurface implements DistortedInputSurface |
32 | 32 |
{ |
33 | 33 |
|
34 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
35 |
|
|
36 |
void prepareDebug(long time) {} |
|
37 |
void renderDebug(long time) {} |
|
38 |
|
|
39 | 34 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
40 | 35 |
// Must be called from a thread holding OpenGL Context |
41 | 36 |
|
... | ... | |
201 | 196 |
super(width,height,NOT_CREATED_YET,numcolors,depthStencil,NOT_CREATED_YET,TYPE_USER); |
202 | 197 |
} |
203 | 198 |
|
204 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
205 |
|
|
206 |
/** |
|
207 |
* Create new offscreen Framebuffer with COLOR0 attachment only. |
|
208 |
* |
|
209 |
* @param width Width of the COLOR0 attachment. |
|
210 |
* @param height Height of the COLOR0 attachment. |
|
211 |
*/ |
|
212 |
@SuppressWarnings("unused") |
|
213 |
public DistortedFramebuffer(int width, int height) |
|
214 |
{ |
|
215 |
super(width,height,NOT_CREATED_YET, 1, NO_DEPTH_NO_STENCIL,NOT_CREATED_YET,TYPE_USER); |
|
216 |
} |
|
217 |
|
|
218 | 199 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
219 | 200 |
/** |
220 | 201 |
* Bind the underlying rectangle of pixels as a OpenGL Texture. |
Also available in: Unified diff
Port all the 'non-controversial' changes from order-independent-transparency branch.