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<hr>
11<h2>C Specification</h2>
12<p>
13    <dl>
14        <dd>
15<pre><code>#include &lt;revolution/include/G2D.h&gt;</code></pre>
16            <dd>
17<pre><code>void G2DDrawSprite( G2DSprite* sprite, G2DPosOri* posOri );</code></pre>
18            </dd>
19    </dl>
20<h2>Description</h2>
21<p>The <code>G2DDrawSprite</code> function renders a single sprite. However, because the G2D API focuses on rendering tile layers instead of sprites, optimizations are not performed (for example, collecting sprites of the same type).</p>
22<h2>Arguments</h2>
23<table width="100%">
24    <tr>
25        <td>
26<code><i><b><STRONG><EM><CODE>sprite</CODE></EM></STRONG></b></i></code></td>
27        <td>
28Pointer to the <CODE>G2DSprite</CODE> structure.</td>
29    </tr>
30    <tr>
31        <td>
32<code><i><b><STRONG><EM><CODE>posOri</CODE></EM></STRONG></b></i></code></td>
33        <td>
34Pointer to the <CODE>G2DPosOri</CODE> structure that the sprite position and orientation have been passed to.</td>
35    </tr>
36</table>
37<h2>Return Values</h2>
38None.
39<h2>See Also</h2>
40<h2>Revision History</h2>
41<p>03/01/2006 Initial version.</p>
42</body>
43</html>