MCPcopy Create free account
hub / github.com/benfry/processing4 / placePresent

Method placePresent

core/src/processing/opengl/PSurfaceJOGL.java:641–650  ·  view source on GitHub ↗
(int stopColor)

Source from the content-addressed store, hash-verified

639
640
641 public void placePresent(int stopColor) {
642 float scale = getPixelScale();
643 pgl.initPresentMode(0.5f * (screenRect.width/scale - sketchWidth),
644 0.5f * (screenRect.height/scale - sketchHeight), stopColor);
645 PApplet.hideMenuBar();
646
647 window.setUndecorated(true);
648 window.setTopLevelPosition((int) displayRect.getX(), (int) displayRect.getY());
649 window.setTopLevelSize((int) displayRect.getWidth(), (int) displayRect.getHeight());
650 }
651
652
653 /*

Callers

nothing calls this directly

Calls 7

getPixelScaleMethod · 0.95
hideMenuBarMethod · 0.95
initPresentModeMethod · 0.80
getXMethod · 0.80
getYMethod · 0.80
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected