1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
<html>
<!--------------------------------------------------->
<!-- Docs/blib - SGE -->
<!--------------------------------------------------->
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>SGE Documentation - Blib</title>
</head>
<body bgcolor=#DED7A0>
<H1>SGE Blib</H1>
<P>
<UL>
<LI><A HREF="#sge_FadedLine">sge_FadedLine</A>
<LI><A HREF="#sge_TexturedLine">sge_TexturedLine</A>
<LI><A HREF="#sge_Trigon">sge_Trigon</A>
<LI><A HREF="#sge_FilledTrigon">sge_FilledTrigon</A>
<LI><A HREF="#sge_FadedTrigon">sge_FadedTrigon</A>
<LI><A HREF="#sge_TexturedTrigon">sge_TexturedTrigon</A>
<LI><A HREF="#sge_TexturedRect">sge_TexturedRect</A>
</UL>
<BR>
<B>Important!</B>
<UL>
<LI>The clipping rectangle set by SDL_SetClipRect() will always be respected.
<LI>These functions will lock the surface if necessary, but you can control this with <A HREF="surface.html#sge_Lock_ON">sge_Lock_ON/OFF()</A>.
<LI>The destination surface will be updated if necessary, but you should really do this yourself to avoid unnecessary updates; control this with <A HREF="surface.html#sge_Update_">sge_Update_ON/OFF()</A>.
<LI>Most drawing primitives can blend with the background; use the Alpha version of the routine to do this.
<LI>A few primitives also has an anti-aliasing mode; use the AA version of the routine to get this feature.
</UL>
<BR><BR><BR>
<B>void <a name="sge_FadedLine">sge_FadedLine</a>(SDL_Surface *dest, Sint16 x1, Sint16 x2, Sint16 y, Uint8 r1, Uint8 g1, Uint8 b1, Uint8 r2, Uint8 g2, Uint8 b2)</B><BR>
Draws a horizontal line from (x1,y) to (x2,y) with its color faded from (r1,g1,b1) to (r2,g2,b2).<BR><BR><BR>
<B>void <a name="sge_TexturedLine">sge_TexturedLine</a>(SDL_Surface *dest, Sint16 x1, Sint16 x2, Sint16 y, SDL_Surface *source, Sint16 sx1, Sint16 sy1, Sint16 sx2, Sint16 sy2)</B><BR>
Draws a horizontal line from (x1,y) to (x2,y) on dest with the texture from the line (sx1,sy1) to
(sx2,sy2) in src.<BR><BR><BR>
<a name="sge_Trigon"><B>sge_Trigon</B></a><BR>
<UL>
<LI>void <B>sge_Trigon(</B>SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color<B>)</B>
<LI>void <B>sge_Trigon(</B>SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint8 R, Uint8 G, Uint8 B<B>)</B>
<LI>void <B>sge_TrigonAlpha(</B>SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color, Uint8 alpha<B>)</B>
<LI>void <B>sge_TrigonAlpha(</B>SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint8 R, Uint8 G, Uint8 B, Uint8 alpha<B>)</B>
<LI>void <B>sge_AATrigon(</B>SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color<B>)</B>
<LI>void <B>sge_AATrigon(</B>SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint8 R, Uint8 G, Uint8 B<B>)</B>
<LI>void <B>sge_AATrigonAlpha(</B>SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color, Uint8 alpha<B>)</B>
<LI>void <B>sge_AATrigonAlpha(</B>SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint8 R, Uint8 G, Uint8 B, Uint8 alpha<B>)</B>
</UL>
Draws a triangle.<BR><BR><BR><BR>
<a name="sge_FilledTrigon"><B>sge_FilledTrigon</B></a><BR>
<UL>
<LI>void <B>sge_FilledTrigon(</B>SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color<B>)</B>
<LI>void <B>sge_FilledTrigon(</B>SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint8 R, Uint8 G, Uint8 B<B>)</B>
<LI>void <B>sge_FilledTrigonAlpha(</B>SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color, Uint8 alpha<B>)</B>
<LI>void <B>sge_FilledTrigonAlpha(</B>SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint8 R, Uint8 G, Uint8 B, Uint8 alpha<B>)</B>
</UL>
Draws a filled triangle.<BR><BR><BR><BR>
<B>void <a name="sge_FadedTrigon">sge_FadedTrigon</a>(SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 c1, Uint32 c2, Uint32 c3)</B><BR>
Draws a gourand shaded triangle.<BR><BR><BR>
<B>void <a name="sge_TexturedTrigon">sge_TexturedTrigon</a>(SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, SDL_Surface *source, Sint16 sx1, Sint16 sy1, Sint16 sx2, Sint16 sy2, Sint16 sx3, Sint16 sy3)</B><BR>
Draws a texture mapped triangle (p1,p2,p3) on dest with the texture from the triangle (sp1,sp2,sp3) on src.
<BR><BR><BR>
<B>void <a name="sge_TexturedRect">sge_TexturedRect</a>(SDL_Surface *dest, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Sint16 x4, Sint16 y4, SDL_Surface *source, Sint16 sx1, Sint16 sy1, Sint16 sx2, Sint16 sy2, Sint16 sx3, Sint16 sy3, Sint16 sx4, Sint16 sy4)</B><BR>
Draws a texture mapped rectangle (p1,p2,p3,p4) on dest with the texture from the rectangle (sp1,sp2,sp3,sp4)
on src.<BR><BR><BR>
</P>
<BR><BR><BR><HR>
<P><I><SMALL>
Copyright © 1999-2002 Anders Lindstrm<BR>
Last updated 020505
</SMALL></I></P>
</body>
</html>
|