diff options
author | Jack Palevich <jackpal@google.com> | 2010-06-22 20:08:40 +0800 |
---|---|---|
committer | Jack Palevich <jackpal@google.com> | 2010-06-22 20:08:40 +0800 |
commit | b3ffef9dfe43a0b33aef57b279ab0e8b98df6e8c (patch) | |
tree | fd4f36b8a38bb5bb70ef233ae889c3ee2cd14879 /opengl | |
parent | 3f3a74a53af9401ee3812e0faa37189467d81af8 (diff) | |
download | frameworks_native-b3ffef9dfe43a0b33aef57b279ab0e8b98df6e8c.zip frameworks_native-b3ffef9dfe43a0b33aef57b279ab0e8b98df6e8c.tar.gz frameworks_native-b3ffef9dfe43a0b33aef57b279ab0e8b98df6e8c.tar.bz2 |
Add OpenGL ES 2.0 VBO versions glDrawElements and glVertexAttribPointer.
Change-Id: Id0069535e97fe96eef74e4d0c1d19b010061fe3b
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/tools/glgen/specs/gles11/GLES20.spec | 4 | ||||
-rw-r--r-- | opengl/tools/glgen/src/JniCodeEmitter.java | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/opengl/tools/glgen/specs/gles11/GLES20.spec b/opengl/tools/glgen/specs/gles11/GLES20.spec index 61094d1..ee88f59 100644 --- a/opengl/tools/glgen/specs/gles11/GLES20.spec +++ b/opengl/tools/glgen/specs/gles11/GLES20.spec @@ -39,6 +39,7 @@ void glDetachShader ( GLuint program, GLuint shader ) void glDisable ( GLenum cap )
void glDisableVertexAttribArray ( GLuint index )
void glDrawArrays ( GLenum mode, GLint first, GLsizei count )
+void glDrawElements ( GLenum mode, GLsizei count, GLenum type, GLint offset )
void glDrawElements ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices )
void glEnable ( GLenum cap )
void glEnableVertexAttribArray ( GLuint index )
@@ -138,5 +139,6 @@ void glVertexAttrib3f ( GLuint indx, GLfloat x, GLfloat y, GLfloat z ) void glVertexAttrib3fv ( GLuint indx, const GLfloat *values )
void glVertexAttrib4f ( GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w )
void glVertexAttrib4fv ( GLuint indx, const GLfloat *values )
+void glVertexAttribPointer ( GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLint offset )
void glVertexAttribPointer ( GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *ptr )
-void glViewport ( GLint x, GLint y, GLsizei width, GLsizei height )
\ No newline at end of file +void glViewport ( GLint x, GLint y, GLsizei width, GLsizei height )
diff --git a/opengl/tools/glgen/src/JniCodeEmitter.java b/opengl/tools/glgen/src/JniCodeEmitter.java index ebaca90..9d8c5a0 100644 --- a/opengl/tools/glgen/src/JniCodeEmitter.java +++ b/opengl/tools/glgen/src/JniCodeEmitter.java @@ -695,7 +695,7 @@ public class JniCodeEmitter { boolean isPointerFunc = isPointerFunc(jfunc); boolean isVBOPointerFunc = (outName.endsWith("Pointer") || outName.endsWith("PointerOES") || - outName.endsWith("DrawElements")) && + outName.endsWith("DrawElements") || outName.endsWith("VertexAttribPointer")) && !jfunc.getCFunc().hasPointerArg(); if (isPointerFunc) { outName += "Bounds"; |