![]() |
|
[a5] antialiased lines |
flonominal
Member #12,614
March 2011
|
how do i draw antialiased lines in allegro 5? ive already done: al_set_new_display_option(ALLEGRO_SAMPLE_BUFFERS, 1, ALLEGRO_REQUIRE); al_set_new_display_option(ALLEGRO_SAMPLES, 4, ALLEGRO_REQUIRE); but that doesn't change anything with: |
Matthew Leverton
Supreme Loser
January 1999
![]() |
Are you drawing the lines directly to the backbuffer? |
flonominal
Member #12,614
March 2011
|
i never changed the current display, so i'm assuming yeah, i'm drawing to the backbuffer |
Elias
Member #358
May 2000
|
Does ex_multisample work? -- |
flonominal
Member #12,614
March 2011
|
yes, i can run ex_multisample (although I don't see a difference between the two windows) |
Elias
Member #358
May 2000
|
What's your operating system and graphics card? -- |
flonominal
Member #12,614
March 2011
|
whether its my laptop or my desktop (2 different os's and graphics card), its still un-sampled. i changed the require to suggest and it worked (although if i could somehow enable antialiasing, that would be much better) |
Elias
Member #358
May 2000
|
flonominal said: i changed the require to suggest and it worked Good that it's working now. And looks like you found a bug in Allegro - I'll put it into the bug tracker. -- |
Thomas Fjellstrom
Member #476
June 2000
![]() |
flonominal said: (although if i could somehow enable antialiasing, that would be much better) Multisampling is how gpu's do anti-aliasing afaik. -- |
Elias
Member #358
May 2000
|
Hm, did I understand right, with ALLEGRO_SUGGEST, multi-sampling actually does work? -- |
GullRaDriel
Member #3,861
September 2003
![]() |
That's how I get it. "Code is like shit - it only smells if it is not yours" |
|