(Box root, String filename)
| 470 | IO.Document doc = FieldBox.fieldBox.io.readDocument(new File(filename).isAbsolute() ? filename : (IO.WORKSPACE + "/" + filename), special, created); |
| 471 | Log.println("io.debug", "created :" + created); |
| 472 | } |
| 473 | Drawing.dirty(root); |
| 474 | |
| 475 | return created; |
| 476 | |
| 477 | } |
| 478 | |
| 479 | public boolean defaultGLPreamble(int pass) { |
| 480 | |
| 481 | |
| 482 | GraphicsContext.getContext().stateTracker.viewport.set(new int[]{0, 0, window.getFrameBufferWidth(), window.getFrameBufferHeight()}); |
| 483 | GraphicsContext.getContext().stateTracker.scissor.set(new int[]{0, 0, window.getFrameBufferWidth(), window.getFrameBufferHeight()}); |
| 484 | glClearColor((float) window.background.x, (float) window.background.y, (float) window.background.z, 1); |
| 485 | glClear(GL11.GL_COLOR_BUFFER_BIT); |
| 486 | glEnable(GL11.GL_BLEND); |
| 487 | glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); |
| 488 | glDisable(GL11.GL_DEPTH_TEST); |
| 489 | if (Main.os != Main.OS.mac) glEnable(GL13.GL_MULTISAMPLE); |
| 490 |
no test coverage detected