| Summary: | Implement polygon rendering | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Martin Gerhardy <martin.gerhardy> |
| Component: | video | Assignee: | Gabriel Jacobo <gabomdq> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | adam, etc0de |
| Version: | 2.0.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Proposed patch | ||
|
Description
Martin Gerhardy
2012-11-01 04:10:40 UTC
Created attachment 985 [details]
Proposed patch
would something like that be acceptable? That seems pretty good. Have you thought about what would be required for the software implementation? 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. 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. Assigning to Gabriel, since it overlaps work that he's doing. 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 |