Added todo notes

This commit is contained in:
codeanticode
2012-08-08 15:58:40 +00:00
parent fa1dcabf69
commit ac9cf6cf30
2 changed files with 15 additions and 0 deletions
+7
View File
@@ -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)
@@ -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);
}