I found the best solution in .... the Sample code of course.
you can look at these classes:
- LabelMaker
- NumericSprite
Franck
On Dec 2, 11:42 am, fcalzada <[EMAIL PROTECTED]> wrote:
> Hi petunio,
>
> you said "I managed (after a lot of problems) to put2Dgraphics on
> top of3D."
> I'm trying hard to do the same, and i don't find a solution.
> how did you do ?
>
> thanks a lot
>
> On Nov 27, 3:09 pm, petunio <[EMAIL PROTECTED]> wrote:
>
> > Hi all
>
> > does anybody know what am I doing wrong?
>
> > I managed (after a lot of problems) to put2Dgraphics on top of3D.
> > But the2Dgraphics are flickering...
>
> > this is the main loop:
>
> > public void drawFrame(GL10gl, my3DObject world, Canvas myCanvas)
> > {
> > gl.glClear(GL10.GL_COLOR_BUFFER_BIT |GL10.GL_DEPTH_BUFFER_BIT);
> > gl.glClearColor(0, 0, 0, 1);
>
> > world.draw(gl); //draws the3Dworld, it works...
>
> > drawIcons(myCanvas); //draws the2Dgraphics. the
> > ones that are flickering...
>
> > mEgl.eglSwapBuffers(mEglDisplay, mEglSurface);
>
> > }
>
> > Also, in the SurfaceCreated method I obtain the canvas, by doing:
> > myCanvas=mHolder.lockCanvas();
> > and then, when the surface is destroyed, I do:
> > mHolder.unlockCanvasAndPost(myCanvas);
>
> > Any help would be very appreciated
> > Thanks!
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---