So I believe the answer to this question is here:
http://stackoverflow.com/questions/7708745/whats-the-offset-parameter-in-gles20-glvertexattribpointer-gldrawelements-an
You can use the "int offset" function if you've called glBindBuffer first.
On Sunday, 4 January 2009 08:35:39 UTC+2, 边蓬 wrote:
>
> the source of framework shows that use offset as void * directly, than
> what should I do before call glDrawElements ?
>
>
> /* void glDrawElements ( GLenum mode, GLsizei count, GLenum type,
> GLint offset ) */
> static void
> android_glDrawElements__IIII
> (JNIEnv *_env, jobject _this, jint mode, jint count, jint type, jint
> offset) {
> glDrawElements(
> (GLenum)mode,
> (GLsizei)count,
> (GLenum)type,
> (const GLvoid *)offset
> );
> }
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en