A while back there was a discussion about adding support for full screen
anti-aliasing for OpenGL to SDL. Can someone fill me in on what got done
on the subject? If there is a URL with the information could you just
send me that?
I’m writing an article on using OpenGL with SDL and I don’t want to miss
any breaking news. I already have info on the pbuffer support that Sam
is working on.
Many Thanks
Bob Pendleton--
±----------------------------------+
Bob Pendleton wrote:
A while back there was a discussion about adding support for full screen
anti-aliasing for OpenGL to SDL. Can someone fill me in on what got done
on the subject? If there is a URL with the information could you just
send me that?
I haven’t seen any documentation about it.
There is a patch in current CVS for FSAA. It’s pretty easy to use
through SDL_GL_SetAttribute :
[snippet of my code]
SDL_InitSubSystem (SDL_INIT_VIDEO);
[…]
SDL_GL_SetAttribute (SDL_GL_RED_SIZE, 4);
SDL_GL_SetAttribute (SDL_GL_GREEN_SIZE, 4);
SDL_GL_SetAttribute (SDL_GL_BLUE_SIZE, 4);
SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, 16);
SDL_GL_SetAttribute (SDL_GL_DOUBLEBUFFER, 1);
if (fsaa)
{
SDL_GL_SetAttribute (SDL_GL_MULTISAMPLESAMPLES, 4); // 4x FSAA
SDL_GL_SetAttribute (SDL_GL_MULTISAMPLEBUFFERS,1);
}
[…]
SDL_SetVideoMode(width, height, bpp, SDL_OPENGL);
Also, setting the SDL_GL_MULTISAMPLESAMPLES or SDL_GL_MULTISAMPLEBUFFERS
attributes when using an old SDL version doesn’t crash, but there is no
FSAA.
Stephane
Bob Pendleton wrote:
A while back there was a discussion about adding support for full screen
anti-aliasing for OpenGL to SDL. Can someone fill me in on what got done
on the subject? If there is a URL with the information could you just
send me that?
I haven’t seen any documentation about it.
There is a patch in current CVS for FSAA. It’s pretty easy to use
through SDL_GL_SetAttribute :
[snippet of my code]
SDL_InitSubSystem (SDL_INIT_VIDEO);
[…]
SDL_GL_SetAttribute (SDL_GL_RED_SIZE, 4);
SDL_GL_SetAttribute (SDL_GL_GREEN_SIZE, 4);
SDL_GL_SetAttribute (SDL_GL_BLUE_SIZE, 4);
SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, 16);
SDL_GL_SetAttribute (SDL_GL_DOUBLEBUFFER, 1);
if (fsaa)
{
SDL_GL_SetAttribute (SDL_GL_MULTISAMPLESAMPLES, 4); // 4x FSAA
SDL_GL_SetAttribute (SDL_GL_MULTISAMPLEBUFFERS,1);
}
[…]
SDL_SetVideoMode(width, height, bpp, SDL_OPENGL);
Also, setting the SDL_GL_MULTISAMPLESAMPLES or SDL_GL_MULTISAMPLEBUFFERS
attributes when using an old SDL version doesn’t crash, but there is no
FSAA.
Stephane
Thanks, that is just what I needed to know.
Bob PendletonOn Thu, 2003-08-21 at 13:35, Stephane Marchesin wrote:
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
–
±----------------------------------+