add noLights()

This commit is contained in:
benfry
2007-11-01 12:26:18 +00:00
parent d074a2e5d5
commit 5812928c16
3 changed files with 17 additions and 0 deletions
+4
View File
@@ -3784,6 +3784,10 @@ public abstract class PGraphics extends PImage implements PConstants {
public void lights() {
depthError("lights");
}
public void noLights() {
depthError("noLights");
}
public void ambientLight(float red, float green, float blue) {
depthError("ambientLight");
+11
View File
@@ -3657,6 +3657,17 @@ public class PGraphics3D extends PGraphics {
lightingDependsOnVertexPosition = false;
}
/**
* Turn off all lights.
*/
public void noLights() {
// write any queued geometry, because lighting will be goofed after
flush();
// set the light count back to zero
lightCount = 0;
}
/**
+2
View File
@@ -1,4 +1,6 @@
0134 core
X add noLights() method
X http://dev.processing.org/bugs/show_bug.cgi?id=666
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .