Thanks for your response andres. I gave this a shot. However when I try to use the FrameBuffer class, I'm running into visibility issues for it's methods, fields and constructors. Is there a way around this or am I handling this in the wrong way perhaps?
PGraphicsCustom.java
PGraphicsCustom.java
- import processing.opengl.PGraphics3D;
- import processing.opengl.FrameBuffer;
- import processing.opengl.Texture;
- public class PGraphicsCustom extends PGraphics3D {
- public PGraphicsCustom() {
- super();
- }
- public void initOffscreen() {
- super.initOffscreen();
- // Error message: "The method release() from the type FrameBuffer is not visible"
- // offscreenFramebuffer.release();
- // Error message: "The constructor FrameBuffer(...) is not visible"
- // offscreenFramebuffer = new FrameBuffer(parent, texture.glWidth, texture.glHeight,
- 1, 2, 0, 0, false, false);
- Texture[] multiTex = new Texture[2];
- // Error message: "The field FrameBuffer.numColorBuffers is not visible"
- // offscreenFramebuffer.numColorBuffers = 2;
- // Error message: "Wrong number of textures to set the color buffers."
- // offscreenFramebuffer.setColorBuffers(multiTex);
- }
- }