(int ambient)
| 2267 | |
| 2268 | |
| 2269 | @Override |
| 2270 | public void setAmbient(int ambient) { |
| 2271 | if (openShape) { |
| 2272 | PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setAmbient()"); |
| 2273 | return; |
| 2274 | } |
| 2275 | |
| 2276 | if (family == GROUP) { |
| 2277 | for (int i = 0; i < childCount; i++) { |
| 2278 | PShapeOpenGL child = (PShapeOpenGL) children[i]; |
| 2279 | child.setAmbient(ambient); |
| 2280 | } |
| 2281 | } else { |
| 2282 | setAmbientImpl(ambient); |
| 2283 | } |
| 2284 | } |
| 2285 | |
| 2286 | |
| 2287 | protected void setAmbientImpl(int ambient) { |
no test coverage detected