From ac9cf6cf300d45d13fe8d9c36ead56f63dd6eb1d Mon Sep 17 00:00:00 2001 From: codeanticode Date: Wed, 8 Aug 2012 15:58:40 +0000 Subject: [PATCH] Added todo notes --- core/andres.txt | 7 +++++++ core/src/processing/opengl/PGraphicsOpenGL.java | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/core/andres.txt b/core/andres.txt index 86234e7d0..6ce809166 100644 --- a/core/andres.txt +++ b/core/andres.txt @@ -1,3 +1,10 @@ +API changes/additions (for beta release) +_ Rename shader constants (FLAT, LIT, TEXTURED, etc) +_ Back-buffer support in shaders: http://code.google.com/p/processing/issues/detail?id=1169 +_ Cleanup video API: http://code.google.com/p/processing/issues/detail?id=1170 +_ Texture wrapping option in PImage/Texture +_ Add DISABLE_PERSPECTIVE_CORRECTED_STROKE hint, remove DISABLE_PERSPECTIVE_CORRECTED_LINES + processing-core todo (after beta): _ some glitches with SVG shapes in P2D _ load world.svg and disable style) diff --git a/core/src/processing/opengl/PGraphicsOpenGL.java b/core/src/processing/opengl/PGraphicsOpenGL.java index 802a3e2f1..a916c6570 100644 --- a/core/src/processing/opengl/PGraphicsOpenGL.java +++ b/core/src/processing/opengl/PGraphicsOpenGL.java @@ -2468,6 +2468,12 @@ public class PGraphicsOpenGL extends PGraphics { for (int i = 0; i < texCache.size; i++) { Texture tex = texCache.getTexture(i); + PApplet.println(texCache.getTextureImage(i) + " " + tex); +// if (tex != null) { +// PApplet.println(tex.width + " " + tex.height); +// } + + // If the renderer is 2D, then lights should always be false, // so no need to worry about that. PolyShader shader = getPolyShader(lights, tex != null); @@ -6312,6 +6318,8 @@ public class PGraphicsOpenGL extends PGraphics { tcmat[3] = 0; tcmat[7] = 0; tcmat[11] = 0; tcmat[15] = 0; setUniformMatrix(texcoordMatrixLoc, tcmat); } + + PApplet.println(tex.maxTexcoordU + " " + tex.maxTexcoordV); setUniformValue(texcoordOffsetLoc, 1.0f / tex.width, 1.0f / tex.height); }