Skip to content

[Feature request] Anti-aliasing support for SDL_Renderer #15361

@LloydJHowarth

Description

@LloydJHowarth

Currently we can set MSAA with OpenGL for example:

SDL.GL_SetAttribute(SDL_GLattr.SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL.GL_SetAttribute(SDL_GLattr.SDL_GL_MULTISAMPLESAMPLES, 4);

This gives us very nice anti-aliasing support for jagged edges on geometry rendered with SDL_RenderGeometry as an example. However it would be nice if we could have a flag or hint to enable some form of AA with all SDL_Renderer backends and not have to force OpenGL specifically

For example:

SDL.SetHint("SDL_RENDERER_MSAA", "4"); // 2, 4, 8, etc

This would be a great feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions