I created a RenderFillTriangles function in SDL’s render source files for OpenGL and OpenGLES2 for a personal project instead of calling tons of appropriately sized RenderFillRect functions just to create a triangle.
If I added this functionality to the DirectX rendering sources, is it something that could be merged into SDL?
I’d very much like this function included.
Sorry if this is a stupid question, but it does it by creating a GL_TRIANGLE, so it’s super fast?
Problems are the software renderers - until this is also implemented for
them, I don’t think it will be included. There are patches on bugzilla for
this already. And there was already a discussion about this in the past.
https://bugzilla.libsdl.org/show_bug.cgi?id=1633On Fri, Dec 4, 2015 at 9:09 AM, AntTheAlchemist wrote:
I’d very much like this function included.
Sorry if this is a stupid question, but it does it by creating a
GL_TRIANGLE, so it’s super fast?
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
2015-12-04 6:03 GMT-03:00, M. Gerhardy <martin.gerhardy at gmail.com>:
Problems are the software renderers - until this is also implemented for
them, I don’t think it will be included.
This, we need a software renderer version or it’s unlikely to be
accepted. (also I honestly wish there is a triangle function for the
software renderer because in the worst case we can base anything else
on top of it)
AntTheAlchemist wrote:
I’d very much like this function included.
Sorry if this is a stupid question, but it does it by creating a GL_TRIANGLE, so it’s super fast?
Yes, it does use GL_TRIANGLES.
M. Gerhardy wrote:
Problems are the software renderers - until this is also implemented for them, I don’t think it will be included. There are patches on bugzilla for this already. And there was already a discussion about this in the past.
Bummer. Dealing with the software renderer looks more complicated. I probably don’t want to go too deep into that. I was thinking about drawing the triangle using SDL_DrawLines (for the software renderer only), but I’m not sure if I could get the anti-aliasing to work.
sorry this is surely a naive remark, but isn’t this already in SDL_gfx ?
Le 05/12/2015 19:25, ace491 a ?crit :>
AntTheAlchemist wrote:
I’d very much like this function included.Sorry if this is a stupid question, but it does it by creating a
GL_TRIANGLE, so it’s super fast?Yes, it does use GL_TRIANGLES.
M. Gerhardy wrote:
Problems are the software renderers - until this is also implemented
for them, I don’t think it will be included. There are patches on
bugzilla for this already. And there was already a discussion about
this in the past.https://bugzilla.libsdl.org/show_bug.cgi?id=1633
Bummer. Dealing with the software renderer looks more complicated. I
probably don’t want to go too deep into that. I was thinking about
drawing the triangle using SDL_DrawLines (for the software renderer
only), but I’m not sure if I could get the anti-aliasing to work.
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
I believe SDL_gfx creates shapes by drawing them line by line, which is slower than directly telling the hardware to draw a triangle.
Sanette wrote:> sorry this is surely a naive remark, but isn’t this already in SDL_gfx ?
Le 05/12/2015 19:25, ace491 a ???crit???:
AntTheAlchemist wrote: I’d very much like this function included.
Sorry if this is a stupid question, but it does it by creating a GL_TRIANGLE, so it’s super fast?
Yes, it does use GL_TRIANGLES.
M. Gerhardy wrote: Problems are the software renderers - until this is also implemented for them, I don’t think it will be included. There are patches on bugzilla for this already. And there was already a discussion about this in the past.
https://bugzilla.libsdl.org/show_bug.cgi?id=1633 (https://bugzilla.libsdl.org/show_bug.cgi?id=1633)
Bummer. Dealing with the software renderer looks more complicated. I probably don’t want to go too deep into that. I was thinking about drawing the triangle using SDL_DrawLines (for the software renderer only), but I’m not sure if I could get the anti-aliasing to work.
SDL mailing list
SDL at lists.libsdl.org (SDL at lists.libsdl.org)
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
Oh, were you saying that SDL_gfx provides what may be needed for the software renderer? Then yes, I suppose so.
ace491 wrote:> I believe SDL_gfx creates shapes by drawing them line by line, which is slower than directly telling the hardware to draw a triangle.
Sanette wrote:
sorry this is surely a naive remark, but isn’t this already in SDL_gfx ?