All I could find about it is this question, but GraphicsMode
alone doesn't enable anti-aliasing:
using System.Drawing;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
class Program
{
static void Main()
{
using (var window = new GameWindow(800, 60, new GraphicsMode(32, 24, 0, 8)))
{
window.Resize += (sender, e) => { GL.Viewport(window.Size); };
window.RenderFrame += (sender, e) =>
{
GL.Clear(ClearBufferMask.ColorBufferBit);
GL.Color3(Color.Red);
GL.Begin(PrimitiveType.Triangles);
GL.Vertex2(-1, 1);
GL.Vertex2(-1, 0);
GL.Vertex2(1, 0);
GL.End();
window.SwapBuffers();
};
window.Run();
}
}
}
GraphicsMode
constructor withint samples
? Is there any documentation for this? \$\endgroup\$