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

Method doOpen

src/main/java/fieldbox/Open.java:472–487  ·  view source on GitHub ↗
(Box root, String filename)

Source from the content-addressed store, hash-verified

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

Callers 4

OpenMethod · 0.95
runMethod · 0.95
copyFromFileCalledMethod · 0.95
insertFromFileCalledMethod · 0.95

Calls 4

printlnMethod · 0.95
dirtyMethod · 0.95
readDocumentMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected