mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Added todo notes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user