MCPcopy Index your code
hub / github.com/benfry/processing4 / initOffscreen

Method initOffscreen

core/src/processing/opengl/PSurfaceJOGL.java:129–140  ·  view source on GitHub ↗
(PApplet sketch)

Source from the content-addressed store, hash-verified

127
128
129 public void initOffscreen(PApplet sketch) {
130 this.sketch = sketch;
131
132 sketchWidth = sketch.sketchWidth();
133 sketchHeight = sketch.sketchHeight();
134
135 if (window != null) {
136 canvas = new NewtCanvasAWT(window);
137 canvas.setBounds(0, 0, window.getWidth(), window.getHeight());
138 canvas.setFocusable(true);
139 }
140 }
141
142
143 public void initFrame(PApplet sketch) {

Callers

nothing calls this directly

Calls 4

sketchWidthMethod · 0.80
sketchHeightMethod · 0.80
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected