Sunday, May 1, 2011

[android-developers] Re: opengles question (to change content of vertexbuffer used in gldrawarrays)

I think required methods are in opengles 1.1. May be I could find
somethings if I play with glbuffersubdata, glbindbuffer..

I was going to ask, is casting enough to use opengles 1.1.
GL11 gl = (GL11) gl10;

On May 1, 7:27 pm, emre onal <emr...@gmail.com> wrote:
> I have some triangle polygons and drawing them in a traditional way:
> (android-java code)
>
> gl.glDrawArrays(GL10.GL_TRIANGLES, i, j);
>
> I want to update the vertex coordinates of the triangles. All of the
> tutorials I've found use an initial vertex data then only apply
> transformations to them. I need to change each vertex coordinate
> independently.
>
> I change the content of the array which is used to create the related
> vertexbuffer but it doesn't make any change on the screen. Rebuilding the
> vertexbuffer on eachframe doesn't seem to be right way I guess.
>
> Can you point out any example source code at least, if you know any?
>
> --
>
> Emre

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate