[SDL] <DKIM> Re: triangles & aspects

Sanette sanette-linux at laposte.net
Sat Mar 25 05:07:49 PDT 2017

Le 24/03/2017 à 22:03, Clangray a écrit :
> *Most importantly they need to be filled triangles. How do I fill 
> traingles?? : )*

if you can use opengl, then it's easy (and super fast. filled triangles 
are the most basic shape in opengl).

It you want to stick to the SDL renderer API, one possibility is the 

  * draw a rotated filled rectangle on a TARGET texture
  * clip two corners by blitting a suitably rotated texture with 0 color

sanette -- full_time_linux

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20170325/2216bd71/attachment.htm>

More information about the SDL mailing list