FrontBuffer

BlitzMax Forums/BlitzMax Beginners Area/FrontBuffer

Angel it might, but it seems to draw the whole scene, including the "Black" bits, so although its not "fliping" in the sence that flipping normaly means, it is colouring black all the Graphics that the Irrlicht engine has drawn onto the screen.

Originaly I already was starting the graphics object without doublebuffering, but had assumed that I was doing someting wrong because I got "Buffer swap flicker", now apon reflection (And in no small part to your answers), I realise that one of these things is happening

1) BMax really really is using a different canvas for the canvas than the one irrlicht is using. (Which I dont belive, cos Ive passed the same handle to both)
2) The max Driver is, as said, over writing the image with black
3) No Backbuffer is infact a "Fixed" backbuffer which is copied over to the canvas on flip.

This line in the docs
Graphics created with the GRAPHICS_BACKBUFFER flag must be 'flipped' after you have finished rendering using Flip.
Implies that Graphics created without the GRAPHICS_BACKBUFFER flag dont need a flip, but as Skids code showed, they do.

To highlight what I mean further, the image is there on the canvas, and without a backbuffer I do a cls. Now this should clear the canvas. But it doesnt. Because althouh no backbuffer was selected, the drawing is infact taking place on another buffer, which is not the one on the screen.

OK so fair enough, it was my mistake to assume that the "front buffer" was the canvas, but in fact as the name implied a "Buffer", which is then swaped out over the canvas