MCPcopy Index your code
hub / github.com/processing/processing / draw

Method draw

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

Source from the content-addressed store, hash-verified

4669
4670
4671 @Override
4672 public void draw(PGraphics g) {
4673 if (g instanceof PGraphicsOpenGL) {
4674 PGraphicsOpenGL gl = (PGraphicsOpenGL)g;
4675 if (visible) {
4676 pre(gl);
4677
4678 updateTessellation();
4679 updateGeometry();
4680
4681 if (family == GROUP) {
4682 if (fragmentedGroup(gl)) {
4683 for (int i = 0; i < childCount; i++) {
4684 ((PShapeOpenGL) children[i]).draw(gl);
4685 }
4686 } else {
4687 PImage tex = null;
4688 if (textures != null && textures.size() == 1) {
4689 tex = (PImage)textures.toArray()[0];
4690 }
4691 render(gl, tex);
4692 }
4693 } else {
4694 render(gl, image);
4695 }
4696 post(gl);
4697 }
4698 } else {
4699 if (family == GEOMETRY) {
4700 inGeoToVertices();
4701 }
4702 pre(g);
4703 drawImpl(g);
4704 post(g);
4705 }
4706 }
4707
4708
4709 private void inGeoToVertices() {

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected