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

Method draw

core/src/processing/opengl/PShapeOpenGL.java:5249–5284  ·  view source on GitHub ↗
(PGraphics g)

Source from the content-addressed store, hash-verified

5247
5248
5249 @Override
5250 public void draw(PGraphics g) {
5251 if (g instanceof PGraphicsOpenGL) {
5252 PGraphicsOpenGL gl = (PGraphicsOpenGL)g;
5253 if (visible) {
5254 pre(gl);
5255
5256 updateTessellation();
5257 updateGeometry();
5258
5259 if (family == GROUP) {
5260 if (fragmentedGroup(gl)) {
5261 for (int i = 0; i < childCount; i++) {
5262 children[i].draw(gl);
5263 }
5264 } else {
5265 PImage tex = null;
5266 if (textures != null && textures.size() == 1) {
5267 tex = (PImage)textures.toArray()[0];
5268 }
5269 render(gl, tex);
5270 }
5271 } else {
5272 render(gl, image);
5273 }
5274 post(gl);
5275 }
5276 } else {
5277 if (family == GEOMETRY) {
5278 inGeoToVertices();
5279 }
5280 pre(g);
5281 drawImpl(g);
5282 post(g);
5283 }
5284 }
5285
5286
5287 private void inGeoToVertices() {

Callers

nothing calls this directly

Calls 10

preMethod · 0.95
updateTessellationMethod · 0.95
updateGeometryMethod · 0.95
fragmentedGroupMethod · 0.95
renderMethod · 0.95
postMethod · 0.95
inGeoToVerticesMethod · 0.95
sizeMethod · 0.45
toArrayMethod · 0.45
drawImplMethod · 0.45

Tested by

no test coverage detected