Ho to use multi sampling ?
(Sorry for my bad english)
I'm having trouble with the multi-sampling, I know that this function il enabled by default, but when I try this:
It return "Without multisampling" . . .
I draw on a bitmap, and then draw that bitmap on the screen like I saw on a tutorial:
x1, y1, x2, y2, al_map_rgb(255
, LargeurAffichage, HauteurAffichage, 0
So I don't know where is the problem . . .
Thanks for your help
PS: My graphic crad is a 520M
1) I think you have to be drawing onto the display for multisampling to work (but I could be wrong!)
2) According to your code you're setting those display options (SAMPLE_BUFFERS, SAMPLES) after you already have a display. You have to set the before you create a display.
According to your code you're setting those display options (SAMPLE_BUFFERS, SAMPLES) after you already have a display. You have to set the before you create a display.
Thank you it was just that, I thought it was activated by default.
Just a last question, I didn't understound the utility of drawing on a bitmap for then draw this bitmap on the screen . . . it use twice more time no ?
Currently I draw directly on the screen, and it work perfectly.
Thread #610986. Printed from Allegro.cc
Enable it with a
display bitmap flag out of those two options. Otherwise there's no way to get a non-multisampled bitmap if you have a multi-sampled display. I'm sure there's a use case.