Got it.  Need to add this code

                // Draw the triangle
                gl.glColor4f(0.63671875f, 0.76953125f, 0.22265625f, 0.0f); // 
red,
blue, green, alpha (android green)
                gl.glVertexPointer(3, GL10.GL_FLOAT, 0, triangleVB); // size, 
type,
stride, pointere
                gl.glDrawArrays(GL10.GL_TRIANGLES, 0, 3); // mode, first, count

to the proper place.  It goes in OnDrawFrame() just like the tutorial
says.


On Oct 21, 3:57 pm, netskink <davi...@gmail.com> wrote:
> Hi,
>
> I am doing the opengl-es10 tutorial available 
> here:http://developer.android.com/resources/tutorials/opengl/opengl-es10.html
>
> I have done up to the part where the green triangle should appear.
> Unfortunately it does not.  I've put a breakpoint in
> onSurfaceCreated() routine to make sure its hitting the code to
> gl.glDrawArrays() and it is indeed hitting this code.
>
> Is there something I need to do with a manifest which is not listed in
> the tutorial?
>
> John

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to