Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement polygon rendering #692

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 1 comment
Closed

Implement polygon rendering #692

SDLBugzilla opened this issue Feb 10, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 2.0.0
Reported for operating system, platform: All, All

Comments on the original bug report:

On 2012-11-01 04:10:40 +0000, Martin Gerhardy wrote:

Having the ability to render polygons in the SDL render interface would be really nice. Something like:

int SDL_RenderDrawPolygons(SDL_Renderer * renderer, const float* vertices, const int count);

On 2012-11-08 05:21:44 +0000, Martin Gerhardy wrote:

Created attachment 985
Proposed patch

On 2012-11-08 05:22:30 +0000, Martin Gerhardy wrote:

would something like that be acceptable?

On 2012-11-08 07:46:34 +0000, Sam Lantinga wrote:

That seems pretty good.

Have you thought about what would be required for the software implementation?

On 2012-11-08 07:48:02 +0000, Martin Gerhardy wrote:

hehe - not yet ;) i will do some research. just wanted to ensure that any work on this side isn't for the trash because it won't get accepted upstream.

On 2014-05-10 03:14:41 +0000, Adam M. wrote:

Shouldn't you be passing an array of points or something, rather than an array of floats? And why floats when other renderer functions use ints? There should be consistency here.

On 2014-06-22 17:19:38 +0000, Sam Lantinga wrote:

Assigning to Gabriel, since it overlaps work that he's doing.

On 2019-06-04 13:30:28 +0000, Ellie wrote:

This looks really nice, and it could be an absolute game changer for TEXTURED polygons.

Imagine something like Diablo 2's fake 3d mode, or simple oldschool-style games that don't need shaders! Currently this can only be done using OpenGL, and of course using that would be faster too with VBO and other functionality being available, but it would be so cool if for really basic but universal 3d effects one could also use SDL2 for simplicity. It's just such an easier way to get started!

I just wanted to say that if this ever gets picked up and if textured triangles were to be added that support SDL2's texture color mod when rendering, I'd definitely be using it

@SDLBugzilla SDLBugzilla added the enhancement New feature or request label Feb 10, 2021
@icculus
Copy link
Collaborator

icculus commented Aug 9, 2021

Closing this because we're likely merging @1bsyl's work in #4195 for 2.0.18.

@icculus icculus closed this as completed Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants