MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / setBounds

Method setBounds

src/main/java/field/graphics/Window.java:565–576  ·  view source on GitHub ↗
(int x, int y, int w, int h)

Source from the content-addressed store, hash-verified

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());

Callers 4

OpenMethod · 0.80
FieldBoxWindowMethod · 0.80
popOutMethod · 0.80
SimpleOculusTargetClass · 0.80

Calls 1

Tested by

no test coverage detected