[SDL] OpenGL Anti-Aliasing?!

Ryan C. Gordon icculus at clutteredmind.org
Mon Feb 7 16:06:44 PST 2005


> What I need to do place in hWnd to work with OGL?!

To get a multisample (FSAA) context, do this:

SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 2);
SDL_Surface *screen = SDL_SetVideoMode(640, 480, 0, SGL_OPENGL);

--ryan.





More information about the SDL mailing list