FSAA with SDL and OpenGL
Does anyone know how to do this?
I've tried
SDL_GL_SetAttribute(SDL_GL_RED_SIZE,8);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE,8);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE,8);
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE,8);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE,24);
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE,8);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER,1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS,1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES,4);
screen = SDL_SetVideoMode( 640,480,32, SDL_OPENGL|SDL_FULLSCREEN|SDL_HWSURFACE);
and get no AA
Using windows XP, nvidia FX5600 drivers are less than a month old using SDL 1.2.7
Thanks
I'm not really sure, but I googled and found this:
SDL_GL_SetAttribute (SDL_GL_SAMPLES_SIZE, number);
// where number is 1 (no fsaa), 2, 4, 8 (and maybe future cards will let you use 16 and more).
Tell/rate me if it works?
[edit]
1) Have you tried setting SDL_GL_DOUBLEBUFFER?
2) Try 1,2,4 instead of 8, and see if it works?
SDL_GL_SetAttribute (SDL_GL_SAMPLES_SIZE, number);
// where number is 1 (no fsaa), 2, 4, 8 (and maybe future cards will let you use 16 and more).
Tell/rate me if it works?
[edit]
1) Have you tried setting SDL_GL_DOUBLEBUFFER?
2) Try 1,2,4 instead of 8, and see if it works?
SDL_GL_SAMPLES_SIZE is not defined.
No luck with your other advice either.
Sorry.
No luck with your other advice either.
Sorry.
Ow I re-read my post, and it is confusing.
Those should be read, apart from each other. In option 2, I meant for the sizes you already posted, you should try another number. Maybe the RED_SIZE doesn't support 8, or the ALPHA_SIZE. You should mess around with the Attributes-values.
Quote: 1) Have you tried setting SDL_GL_DOUBLEBUFFER?
2) Try 1,2,4 instead of 8, and see if it works?
Those should be read, apart from each other. In option 2, I meant for the sizes you already posted, you should try another number. Maybe the RED_SIZE doesn't support 8, or the ALPHA_SIZE. You should mess around with the Attributes-values.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement