void init(GlContext glContext, Texture texture) { this.glContext = glContext; this.width = glContext.getWidth(); this.height = glContext.getHeight(); this.rootFrameBuffer = FrameBuffer.obtain(texture); }
void init(GlContext glContext, int externalRootFrameBuffer) { this.glContext = glContext; this.width = glContext.getWidth(); this.height = glContext.getHeight(); this.externalRootFrameBuffer = externalRootFrameBuffer; }