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