[android-developers] blank screen with opengl

2010-06-16 Thread Simone
I got this, to show a rectangle: private float[] sCoords = { // X, Y, Z GameRenderer.W/3, GameRenderer.H/3, 0, GameRenderer.W/3, 20f, 0, 30f, 20f, 0, 30f, GameRenderer.H/3, 0 }; ... gl.glVertexPointer(3, GL10.GL_FLOAT, 0,

Re: [android-developers] blank screen with opengl

2010-06-16 Thread Leigh McRae
Could be anything. Make sure you have a glGetError in your render loop someplace as it might indicate a problem. Also check for EGL errors. Maybe your texture isn't being loaded correctly. Try starting with clearing the screen to pink to be sure your rendering context is working. Then