|
Hello,
I am trying to write a Rect in MyCanvas3D after each
rendering, using Graphics
method :
public class PkCanvas3D extends
Canvas3D
{ public PkCanvas3D() { super(null);
}
/*public void
postRender() {
Graphics graph = this.getGraphics(); graph.clearRect(50, 50, 250, 250); } */ public void
postSwap()
{ Graphics graph = getGraphics(); graph.clearRect(50, 50, 250, 250);
}
} My problem is :
- If I use the preceeding code, the
rendering is flashing very much.
I supose it is because I write in the
front buffer after the swap.
- If I put the drawing code in
postRender() method, the drawing
does not remain on screen. I supose
it is because the swap erase
my drawing.
The good solution might be to draw
using the postRender but in
the back buffer, just before the
swap.
The question is "How to draw in
the back buffer ?".
Is it a good question or idiotic
question ?
I already saw a close question in the
archives but with no answer.
Thanx a lot to my future
saver. :-)
===============================================
Jean-Yves Brud Mél: [EMAIL PROTECTED] =============================================== |
- Re: [JAVA3D] Help to write in back buffer in postRender me... Jean-Yves BRUD
- Re: [JAVA3D] Help to write in back buffer in postRend... Vladimir Olenin
