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,
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
2 matches
Mail list logo