Posted Tuesday, 15 March, 2011 - 23:15 by migueltk
As I can know the maximum value that supports my graphics card?. In the example is initialized at 4x and my card supports 8x. I need to know the maximum value before instantiating the gamewindow.
As I can get this?
Posted Wednesday, 16 March, 2011 - 17:36 by migueltk
I had to make a small modification but the code works, thank you very much.
var aa_modes = new List<int>();
int aa = 0;
do{var mode = newGraphicsMode(32, 0, 0, aa);
if(!aa_modes.Contains(mode.Samples))
aa_modes.Add(aa);
aa += 2;
}while(aa <= 32);
Comments
Re: As I can get the best MultiSample AntiAliasing ...
Check the example browser -> OpenTK -> GameWindow MSAA sample. In short, this will do the trick:
Re: As I can get the best MultiSample AntiAliasing ...
As I can know the maximum value that supports my graphics card?. In the example is initialized at 4x and my card supports 8x. I need to know the maximum value before instantiating the gamewindow.
As I can get this?
Re: As I can get the best MultiSample AntiAliasing ...
There is no API to retrieve the maximum AA mode yet. You can create GraphicsModes with increasing AA values until they repeat or fail:
The maximum AA mode will be the one returned by
aa_modes.Last().Re: As I can get the best MultiSample AntiAliasing ...
I had to make a small modification but the code works, thank you very much.
The demo can be downloaded from my website.