(int x, int y, int w, int h)
| 563 | return new Rect(currentBounds.x, currentBounds.y, getFrameBufferWidth(), getFrameBufferHeight()); |
| 564 | } |
| 565 | |
| 566 | protected void updateScene() { |
| 567 | GraphicsContext.enterContext(graphicsContext); |
| 568 | GraphicsContext.checkError(() -> "initially"); |
| 569 | try { |
| 570 | GraphicsContext.getContext().stateTracker.viewport.set( |
| 571 | new int[]{0, 0, w * getRetinaScaleFactor(), h * getRetinaScaleFactor()}); |
| 572 | GraphicsContext.getContext().stateTracker.scissor.set( |
| 573 | new int[]{0, 0, w * getRetinaScaleFactor(), h * getRetinaScaleFactor()}); |
| 574 | GraphicsContext.getContext().stateTracker.fbo.set(0); |
| 575 | GraphicsContext.getContext().stateTracker.shader.set(0); |
| 576 | GraphicsContext.getContext().stateTracker.blendState.set( |
| 577 | new int[]{GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA}); |
| 578 | |
| 579 | Log.log("graphics.trace", () -> "internalScene is ...\n" + scene.debugPrintScene()); |
no test coverage detected