diff --git a/vtm-android/src/org/oscim/android/gl/AndroidGL.java b/vtm-android/src/org/oscim/android/gl/AndroidGL.java index 16fc5f8a..da6c0329 100644 --- a/vtm-android/src/org/oscim/android/gl/AndroidGL.java +++ b/vtm-android/src/org/oscim/android/gl/AndroidGL.java @@ -139,8 +139,8 @@ public class AndroidGL implements GL20 { } @Override - public void glDrawElements(int mode, int count, int type, int indices) { - GLES20.glDrawElements(mode, count, type, indices); + public void glDrawElements(int mode, int count, int type, int offset) { + GLES20.glDrawElements(mode, count, type, offset); } @Override diff --git a/vtm/src/org/oscim/backend/GL20.java b/vtm/src/org/oscim/backend/GL20.java index e04632d4..283eb253 100644 --- a/vtm/src/org/oscim/backend/GL20.java +++ b/vtm/src/org/oscim/backend/GL20.java @@ -395,7 +395,7 @@ public interface GL20 { public void glDisableVertexAttribArray(int index); - public void glDrawElements(int mode, int count, int type, int indices); + public void glDrawElements(int mode, int count, int type, int offset); public void glEnableVertexAttribArray(int index); @@ -565,8 +565,11 @@ public interface GL20 { public void glVertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, Buffer ptr); + /** + * + */ public void glVertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, - int ptr); + int offset); //------------------------