1<html> 2<head> 3<title>G2DDrawSprite</title> 4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 7</head> 8<body> 9<h1>G2DDrawSprite</h1> 10 11<h2>Syntax</h2> 12<dl><dd><pre class="construction"> 13#include <revolution/G2D.h> 14 15void G2DDrawSprite( G2DSprite *sprite, G2DPosOri *posOri ); 16</pre></dd></dl> 17 18<h2>Arguments</h2> 19<TABLE class="arguments" border="1" > 20 <tr> 21<th><STRONG><EM><CODE>sprite</CODE></EM></STRONG></th> 22<td>Pointer to the <CODE>G2DSprite</CODE> structure.</td> 23 </tr> 24 <tr> 25<th>posOri</th> 26<td>Pointer to the <CODE>G2DPosOri</CODE> structure to which the position and orientation of the sprite have been passed.</td> 27 </tr> 28</table> 29 30<h2>Return Values</h2> 31<p>None.</p> 32 33<h2>Description</h2> 34<p>The <code>G2DDrawSprite</code> function renders a single sprite. However, the G2D API focuses more on rendering the tile layer than sprites, so there is no optimization for sprite rendering, such as collecting sprites of the same type.</p> 35 36<h2>See Also</h2> 37<p>None.</p> 38 39<h2>Revision History</h2> 40<p> 412006/03/01 Initial version.<br> 42</p> 43 44<hr><p>CONFIDENTIAL</p></body> 45</html>