Sdl_gl_multisample

Since recently, SDL supports multisampling using two gl attributes:
SDL_GL_MULTISAMPLEBUFFERS and SDL_GL_MULTISAMPLESAMPLES.

That’s really nice, and mimics the behaviour of the gl API. However, I think
that it could be simplified by using only a single attribute:
SDL_GL_SAMPLES, so that if samples = 1, then multisampling is disabled, and
if samples > 1 multisampling is enabled. Do you think there’s need for two
different attributes?–
Ignacio Casta?o
@Ignacio_Castano

Since recently, SDL supports multisampling using two gl attributes:
SDL_GL_MULTISAMPLEBUFFERS and SDL_GL_MULTISAMPLESAMPLES.

That’s really nice, and mimics the behaviour of the gl API. However, I think
that it could be simplified by using only a single attribute:
SDL_GL_SAMPLES, so that if samples = 1, then multisampling is disabled, and
if samples > 1 multisampling is enabled. Do you think there’s need for two
different attributes?

Yes; they do two different things, and neither is a boolean value.

Arguably, MULTISAMPLEBUFFERS is the on/off switch, since all known
implementations only support one multisample buffer at most, but there’s
really no good reason to limit ourselves.

–ryan.