(int specular)
| 2468 | |
| 2469 | |
| 2470 | @Override |
| 2471 | public void setSpecular(int specular) { |
| 2472 | if (openShape) { |
| 2473 | PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setSpecular()"); |
| 2474 | return; |
| 2475 | } |
| 2476 | |
| 2477 | if (family == GROUP) { |
| 2478 | for (int i = 0; i < childCount; i++) { |
| 2479 | PShapeOpenGL child = (PShapeOpenGL) children[i]; |
| 2480 | child.setSpecular(specular); |
| 2481 | } |
| 2482 | } else { |
| 2483 | setSpecularImpl(specular); |
| 2484 | } |
| 2485 | } |
| 2486 | |
| 2487 | |
| 2488 | protected void setSpecularImpl(int specular) { |
no test coverage detected