depthtest as a hint, a few more public variables

This commit is contained in:
benfry
2004-07-08 21:38:26 +00:00
parent ef1ca11cae
commit 16d76088c7
5 changed files with 12 additions and 9 deletions
+2 -1
View File
@@ -233,8 +233,9 @@ public interface PConstants {
static final int NEW_GRAPHICS = 2;
static final int DISABLE_TEXT_SMOOTH = 3;
static final int DISABLE_SMOOTH_HACK = 4;
static final int NO_DEPTH_TEST = 5;
static final int HINT_COUNT = 5;
static final int HINT_COUNT = 6;
//////////////////////////////////////////////////////////////
+4 -4
View File
@@ -44,11 +44,11 @@ public class PGraphics extends PImage implements PConstants {
int pixelCount;
//public int pixels[]; // wtf? appletviewer wants this pubic
int stencil[]; // stencil buffer used to antialias polygons
float zbuffer[];
public int stencil[]; // stencil buffer used to antialias polygons
public float zbuffer[];
//boolean zbufferTainted;
boolean depthTest;
//boolean depthTest;
//int frameCount;
@@ -439,7 +439,7 @@ public class PGraphics extends PImage implements PConstants {
*/
public void defaults() {
//frameCount = 0;
depthTest = true;
//depthTest = true;
colorMode(RGB, TFF);
fill(TFF);
stroke(0);
+3 -3
View File
@@ -64,10 +64,10 @@ public class PImage implements PConstants, Cloneable {
// note that RGB images still require 0xff in the high byte
// because of how they'll be manipulated by other functions
int format;
public int format;
int pixels[];
int width, height;
public int pixels[];
public int width, height;
// would scan line be useful? maybe for pow of 2 gl textures
// note! inherited by PGraphics
+1 -1
View File
@@ -153,7 +153,7 @@ public class PPolygon implements PConstants {
pixels = parent.pixels;
zbuffer = parent.zbuffer;
noDepthTest = !parent.depthTest;
noDepthTest = parent.hints[NO_DEPTH_TEST]; //!parent.depthTest;
smoothing = parent.smooth;
// by default, text turns on smoothing for the textures
+2
View File
@@ -234,6 +234,8 @@ X modify preproc to handle "void setup" -> "public void setup"
o preproc bug: text(String.valueOf(i+1), left + i*20, top);
o unexpected token "String"
OutOfMemoryError still showing up when no CR at end of app
_ casting working properly.. int() maps to toInt()?
_ what is performance hit for this thing?
_ processing.app -> PdeBase, PdeEditor..