Skip to content

Commit 8dd0d5c

Browse files
committed
merged in changes from desktop gl
1 parent 54082bc commit 8dd0d5c

12 files changed

+2074
-1426
lines changed

core/src/processing/core/PConstants.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,10 @@ public interface PConstants {
422422
static final int ENABLE_STROKE_PURE = 9;
423423
static final int DISABLE_STROKE_PURE = -9;
424424

425-
static final int HINT_COUNT = 10;
425+
static final int ENABLE_BUFFER_READING = 10;
426+
static final int DISABLE_BUFFER_READING = -10;
427+
428+
static final int HINT_COUNT = 11;
426429

427430

428431
// error messages

core/src/processing/core/PGraphics.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,22 @@ public void normal(float nx, float ny, float nz) {
10721072
}
10731073
}
10741074

1075+
1076+
public void attribPosition(String name, float x, float y, float z) {
1077+
showMissingWarning("attrib");
1078+
}
1079+
1080+
1081+
public void attribNormal(String name, float nx, float ny, float nz) {
1082+
showMissingWarning("attrib");
1083+
}
1084+
1085+
1086+
public void attribColor(String name, int color) {
1087+
showMissingWarning("attrib");
1088+
}
1089+
1090+
10751091
public void attrib(String name, float... values) {
10761092
showMissingWarning("attrib");
10771093
}

core/src/processing/core/PShape.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ public class PShape implements PConstants {
115115
static public final String NO_VERTICES_ERROR =
116116
"getVertexCount() only works with PATH or GEOMETRY shapes";
117117

118+
public static final String NOT_A_SIMPLE_VERTEX =
119+
"%1$s can not be called on quadratic or bezier vertices";
120+
118121
// boundary box of this shape
119122
//protected float x;
120123
//protected float y;
@@ -716,6 +719,17 @@ public void normal(float nx, float ny, float nz) {
716719
}
717720

718721

722+
public void attribPosition(String name, float x, float y, float z) {
723+
}
724+
725+
public void attribNormal(String name, float nx, float ny, float nz) {
726+
}
727+
728+
729+
public void attribColor(String name, int color) {
730+
}
731+
732+
719733
public void attrib(String name, float... values) {
720734
}
721735

core/src/processing/opengl/FontTexture.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,10 @@ public boolean contextIsOutdated() {
264264
}
265265
if (outdated) {
266266
for (int i = 0; i < textures.length; i++) {
267-
PGraphicsOpenGL.removeTextureObject(textures[i].glName,
268-
textures[i].context);
269-
textures[i].glName = 0;
267+
textures[i].dispose();
268+
// PGraphicsOpenGL.removeTextureObject(textures[i].glName,
269+
// textures[i].context);
270+
// textures[i].glName = 0;
270271
}
271272
}
272273
return outdated;

0 commit comments

Comments
 (0)