- Code: Select all
gl.glColor4f(1.0f, 0.0f, 0.0f, 1.0f);
gl.glVertexPointer(2, GL10.GL_FLOAT, 0, vertexBuffer);
gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, texCoordBuffer);
gl.glDrawArrays(GL10.GL_TRIANGLES, pos, count * FLOATS_PER_TRIANGLE);
Altrough i would think this draws my map colored with red, it appears complete uncolored. Just normal texture Colors.
Without Textures this dont work too... i doens't even can draw an colored rect!
Using glColorPointer dont work either.
Is there any initialization setting that prevents coloring?
So many examples are using glColor4f like this, and it seems to work, but it don't work on my code here... so whats going on here ?

I'm using the Emulator btw. Don't got an phone at the moment.


