[SDL] <DKIM> Re: triangles & aspects
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...
More information about the SDL