some errors ironed out from glmodel

This commit is contained in:
codeanticode
2010-01-27 21:46:39 +00:00
parent 1393b319b5
commit cbd0d8606a
3 changed files with 4 additions and 4 deletions
@@ -77,7 +77,7 @@ public interface GLConstants {
public static final int NORMALS = 1;
public static final int COLORS = 2;
public static final int TEXTURES = 3;
public static final int GROUPS = 3;
public static final int GROUPS = 4;
@@ -217,7 +217,7 @@ public class GLModel implements GLConstants, PConstants {
throw new RuntimeException("GLModel: call beginUpdate()");
}
if (lastUpdateIdx < firstUpdateIdx) return;
if (updateElement != GROUPS && lastUpdateIdx < firstUpdateIdx) return;
if (updateElement == VERTICES) {
if (updateVertexArray == null) {
@@ -1,12 +1,12 @@
package processing.android.core;
public class GLModelParameters implements GLConstants, PConstants {
GLModelParameters() {
public GLModelParameters() {
updateMode = STATIC;
drawMode= POINTS;
}
GLModelParameters(GLModelParameters src) {
public GLModelParameters(GLModelParameters src) {
updateMode = src.updateMode;
drawMode= src.drawMode;
}