/
hgesprite_getboundingboxex.html
69 lines (63 loc) · 1.87 KB
/
hgesprite_getboundingboxex.html
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- http://hge.relishgames.com -->
<html>
<head>
<meta name="Keywords" content="game engine, 2d, hardware accelerated, hge, engine, relish games, game development">
<meta name="Description" content="Haaf's Game Engine - Hardware accelerated 2D games engine">
<title>Haaf's Game Engine - Hardware accelerated 2D games engine</title>
<link rel=stylesheet type=text/css href=hge.css>
<script language="JavaScript" src="hge.js"></script>
</head>
<body onload="setContents('cnt_hgesprite.html');" bgcolor=#ffffff text=#000000 link=#7F0000 vlink=#7F0000 alink=#7F0000 marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>
<table height=100% cellspacing=0 cellpadding=0 border=0><tr>
<td valign=top>
<table width=566 cellspacing=0 cellpadding=20 border=0><tr><td>
<h1 style="margin-top:0px">hgeSprite::GetBoundingBoxEx</h1>
<p>
Returns the scaled and rotated sprite bounding box.
</p>
<pre>
hgeRect *GetBoundingBoxEx(
float <i><b>x</b></i>,
float <i><b>y</b></i>,
float <i><b>rot</b></i>,
float <i><b>hscale</b></i>,
float <i><b>vscale</b></i>,
hgeRect *<i><b>rect</b></i>
);
</pre>
<h2>Parameters</h2>
<dl>
<dt><i>x</i>
<dd>On-screen x-coordinate of the sprite.
<dt><i>y</i>
<dd>On-screen y-coordinate of the sprite.
<dt><i>rot</i>
<dd>Sprite rotation in radians.
<dt><i>hscale</i>
<dd>Horizontal scaling factor. 1.0 means default size.
<dt><i>vscale</i>
<dd>Vertical scaling factor. 1.0 means default size.
<dt><i>rect</i>
<dd>Pointer to a <a href="hgerect__main.html">hgeRect</a>
object to store the sprite's bounding box to.
</dl>
<h2>Return value</h2>
<p>
Returns <b>rect</b> parameter.
</p>
<h2>Requirements</h2>
<p>
<b>Header:</b> hgesprite.h<br>
<b>Import library:</b> hgehelp.lib<br>
</p>
<h2>See also</h2>
<p>
<a href="hgesprite_getboundingbox.html">GetBoundingBox</a>
</p>
<br>
</td></tr></table>
</td>
</tr></table>
</body>
</html>