Are you seeing a blank screen?

Without logs or trace, it is very difficult to analyze issues.

Try calling glGetError method after each GL call to know whether any GL
error occured or not.

sample code for your reference.

public static void checkError(GL g, String identifier) {
int error;

while ((error = g.glGetError()) != GL.GL_NO_ERROR) {

throw new RuntimeException(identifier + ": glError " + error);
}

P.S: I've just started learning openGL and found that above method very
useful for debugging openGL programs.

-regards,
prakash m.


2011/10/22 netskink <davi...@gmail.com>:
> 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

-- 
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