SDL Digest, Vol 108, Issue 6

Message-ID: <1449339937.m2f.49308 at forums.libsdl.org>
Content-Type: text/plain; charset=“iso-8859-1”

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.

I was working on it, but I couldn’t spend enough time to figure out
why the colors were coming out wrong (the shape was correct). If you
want to play around with it, the relevant bugzilla reports are here:
https://bugzilla.libsdl.org/show_bug.cgi?id=2888
https://bugzilla.libsdl.org/show_bug.cgi?id=2894

How the actual visual tests you want a few months back, I think in
July. I believe you’ll want to skip two versions at least. In the most
current I gave up on actually drawing an image for testing purposes,
and switched to just checking the numbers directly, but I haven’t
implemented useful numbers of tests yet.

The secret to developing for the software renderer is to start by
drawing to a SDL_Surface: the software renderer backend either uses
them directly, or comes very close, so most work can be done without
touching the renderer directly.> Date: Sat, 05 Dec 2015 18:25:37 +0000

From: “ace491”
To: sdl at lists.libsdl.org
Subject: Re: [SDL] Render Fill Triangles