Re: <DKIM> Re: triangles & aspects

Sanette <[email protected]> Sat, 25 Mar 2017 13:07:49 +0100
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============4038418247461866945==
Content-Type: multipart/alternative;
 boundary="------------3DF4F106978E1CBD0E5E818D"

This is a multi-part message in MIME format.
--------------3DF4F106978E1CBD0E5E818D
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

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 
following:

  * 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


--------------3DF4F106978E1CBD0E5E818D
Content-Type: text/html; charset=iso-8859-15
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=iso-8859-15"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 24/03/2017 à 22:03, Clangray a
      écrit :<br>
    </div>
    <blockquote
cite="mid:1490389413.1256237.922669192.700597CA@webmail.messagingengine.com"
      type="cite"> <b>Most importantly they need to be filled
        triangles. How do I fill traingles?? : )</b></blockquote>
    <br>
    if you can use opengl, then it's easy (and super fast. filled
    triangles are the most basic shape in opengl).<br>
    <br>
    It you want to stick to the SDL renderer API, one possibility is the
    following:<br>
    <br>
     * draw a rotated filled rectangle on a TARGET texture<br>
     * clip two corners by blitting a suitably rotated texture with 0
    color<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
sanette -- full_time_linux</pre>
  </body>
</html>

--------------3DF4F106978E1CBD0E5E818D--

--===============4038418247461866945==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

--===============4038418247461866945==--