(PGraphics g)
| 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() { |
nothing calls this directly
no test coverage detected