Hi, I’m having problems with BufferStrategy… for some reason I can’t manage to update the graphics in it:
public void Draw()
{
backbuffer = this.getBufferStrategy();
do
{
try{
graphics = backbuffer.getDrawGraphics();
DrawAll(); //this draws thing on "graphics"
}
finally
{
graphics.dispose();
}
backbuffer.show();
Toolkit.getDefaultToolkit().sync();
} while (backbuffer.contentsLost());
}
It is necessary to say that I always call this method? but for some reason I can’t see my … new graphics?
If you need more details, just tell me.
Thanks.