new fixes and changes for 0080.

This commit is contained in:
benfry
2005-04-01 04:02:04 +00:00
parent 5b5e8a734d
commit 91bbf75291
14 changed files with 899 additions and 815 deletions

View File

@@ -128,8 +128,8 @@ public class PGraphics3 extends PGraphics {
// ........................................................
/**
* IMAGE_SPACE or NORMAL_SPACE, though this should probably
* be called textureSpace().. hrm
* IMAGE or NORMALIZED, though this should probably
* be called textureSpace().
*/
public int textureMode;
@@ -311,7 +311,7 @@ public class PGraphics3 extends PGraphics {
//System.out.println("PGraphics3.defaults()");
// easiest for beginners
textureMode(IMAGE_SPACE);
textureMode(IMAGE);
// better to leave this turned off by default
noLights();
@@ -500,7 +500,7 @@ public class PGraphics3 extends PGraphics {
// "after beginShape() and before vertex()");
//return;
}
if (textureMode == IMAGE_SPACE) {
if (textureMode == IMAGE) {
u /= (float) textureImage.width;
v /= (float) textureImage.height;
}
@@ -1949,7 +1949,7 @@ public class PGraphics3 extends PGraphics {
stroke = false;
fill = true;
textureMode = IMAGE_SPACE;
textureMode = IMAGE;
float savedFillR = fillR;
float savedFillG = fillG;