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

Method setAmbient

core/src/processing/opengl/PShapeOpenGL.java:2269–2284  ·  view source on GitHub ↗
(int ambient)

Source from the content-addressed store, hash-verified

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) {

Callers 2

enableStyleMethod · 0.95
stylesMethod · 0.95

Calls 4

showWarningMethod · 0.95
setAmbientImplMethod · 0.95
javaToNativeARGBMethod · 0.95
markForTessellationMethod · 0.95

Tested by

no test coverage detected