It works. I do it on every game :) Just be careful about the matrix
stack and you'll be fine.
On Jun 28, 12:16 pm, Navigateur wrote:
> Many many many thanks. I'll get back to you whether it works or not. I
> was still in projection matrix mode (and not modelview) before drawing
> the 2D stuff (
Many many many thanks. I'll get back to you whether it works or not. I
was still in projection matrix mode (and not modelview) before drawing
the 2D stuff (from the OpenGL FAQ for drawing 2D controls). I'll tell
you whether modelview works or not. Nightwolf - thanks, yeah I forgot
to mention I did
Here's the standard method for a 3D game w/2D controls:
onSurfaceChanged:
this means you have a new GL context so it's a fresh state machine
ready to be configured.
set viewport and enable and configure things that will always be used,
like texturing, texture coordinate arrays, vert arrays, erase
There's a chance that your 2D stuff is behind 3D stuff. Turning depth
test off is a good idea for drawing UI.
gl.glDisable(GL10.GL_DEPTH_TEST);
Does drawing 2D alone work?
On Jun 27, 4:01 pm, Navigateur wrote:
> Can somebody take me step-by-step how to draw 2D stuff over a 3D scene
> (such as c
4 matches
Mail list logo