diff options
Diffstat (limited to 'doc/html/Sprite_8hpp-source.htm')
-rwxr-xr-x | doc/html/Sprite_8hpp-source.htm | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/doc/html/Sprite_8hpp-source.htm b/doc/html/Sprite_8hpp-source.htm index c5977cd..cf66a75 100755 --- a/doc/html/Sprite_8hpp-source.htm +++ b/doc/html/Sprite_8hpp-source.htm @@ -10,19 +10,25 @@ <div id="logo"> <img src="./logo.jpg" width="770" height="200" title="SFML home" alt="SFML logo" /> </div> -<!-- Generated by Doxygen 1.5.2 --> -<div class="tabs"> - <ul> - <li><a href="index.htm"><span>Main Page</span></a></li> - <li><a href="namespaces.htm"><span>Namespaces</span></a></li> - <li><a href="classes.htm"><span>Classes</span></a></li> - <li class="current"><a href="files.htm"><span>Files</span></a></li> - </ul> -</div> +<!-- Generated by Doxygen 1.5.8 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.htm"><span>Main Page</span></a></li> + <li><a href="namespaces.htm"><span>Namespaces</span></a></li> + <li><a href="annotated.htm"><span>Classes</span></a></li> + <li class="current"><a href="files.htm"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="files.htm"><span>File List</span></a></li> + </ul> + </div> <h1>Sprite.hpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <a name="l00002"></a>00002 <span class="comment">//</span> <a name="l00003"></a>00003 <span class="comment">// SFML - Simple and Fast Multimedia Library</span> -<a name="l00004"></a>00004 <span class="comment">// Copyright (C) 2007-2008 Laurent Gomila (laurent.gom@gmail.com)</span> +<a name="l00004"></a>00004 <span class="comment">// Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)</span> <a name="l00005"></a>00005 <span class="comment">//</span> <a name="l00006"></a>00006 <span class="comment">// This software is provided 'as-is', without any express or implied warranty.</span> <a name="l00007"></a>00007 <span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span> @@ -55,21 +61,21 @@ <a name="l00037"></a>00037 { <a name="l00038"></a>00038 <span class="keyword">class </span>Image; <a name="l00039"></a>00039 -<a name="l00044"></a><a class="code" href="classsf_1_1Sprite.htm">00044</a> <span class="keyword">class </span>SFML_API Sprite : <span class="keyword">public</span> <a class="code" href="classsf_1_1Drawable.htm" title="Abstract base class for every object that can be drawn into a render window.">Drawable</a> +<a name="l00044"></a><a class="code" href="classsf_1_1Sprite.htm">00044</a> <span class="keyword">class </span>SFML_API <a class="code" href="classsf_1_1Sprite.htm" title="Sprite defines a sprite : texture, transformations, color, and draw on screen.">Sprite</a> : <span class="keyword">public</span> <a class="code" href="classsf_1_1Drawable.htm" title="Abstract base class for every object that can be drawn into a render window.">Drawable</a> <a name="l00045"></a>00045 { <a name="l00046"></a>00046 <span class="keyword">public</span> : <a name="l00047"></a>00047 -<a name="l00052"></a>00052 Sprite(); +<a name="l00052"></a>00052 <a class="code" href="classsf_1_1Sprite.htm" title="Sprite defines a sprite : texture, transformations, color, and draw on screen.">Sprite</a>(); <a name="l00053"></a>00053 -<a name="l00064"></a>00064 Sprite(<span class="keyword">const</span> <a class="code" href="classsf_1_1Image.htm" title="Image is the low-level class for loading and manipulating images.">Image</a>& Img, <span class="keyword">const</span> <a class="code" href="classsf_1_1Vector2.htm" title="Vector2 is an utility class for manipulating 2 dimensional vectors.">Vector2f</a>& Position = <a class="code" href="namespacesf.htm#cf03098c2577b869e2fa6836cc48f1a0">Vector2f</a>(0, 0), <span class="keyword">const</span> <a class="code" href="classsf_1_1Vector2.htm" title="Vector2 is an utility class for manipulating 2 dimensional vectors.">Vector2f</a>& Scale = <a class="code" href="namespacesf.htm#cf03098c2577b869e2fa6836cc48f1a0">Vector2f</a>(1, 1), <span class="keywordtype">float</span> Rotation = 0.f, <span class="keyword">const</span> <a class="code" href="classsf_1_1Color.htm" title="Color is an utility class for manipulating 32-bits RGBA colors.">Color</a>& Col = <a class="code" href="classsf_1_1Color.htm" title="Color is an utility class for manipulating 32-bits RGBA colors.">Color</a>(255, 255, 255, 255)); +<a name="l00064"></a>00064 <a class="code" href="classsf_1_1Sprite.htm" title="Sprite defines a sprite : texture, transformations, color, and draw on screen.">Sprite</a>(<span class="keyword">const</span> <a class="code" href="classsf_1_1Image.htm" title="Image is the low-level class for loading and manipulating images.">Image</a>& Img, <span class="keyword">const</span> <a class="code" href="classsf_1_1Vector2.htm">Vector2f</a>& Position = <a class="code" href="classsf_1_1Vector2.htm">Vector2f</a>(0, 0), <span class="keyword">const</span> <a class="code" href="classsf_1_1Vector2.htm">Vector2f</a>& Scale = <a class="code" href="classsf_1_1Vector2.htm">Vector2f</a>(1, 1), <span class="keywordtype">float</span> Rotation = 0.f, <span class="keyword">const</span> <a class="code" href="classsf_1_1Color.htm" title="Color is an utility class for manipulating 32-bits RGBA colors.">Color</a>& Col = <a class="code" href="classsf_1_1Color.htm" title="Color is an utility class for manipulating 32-bits RGBA colors.">Color</a>(255, 255, 255, 255)); <a name="l00065"></a>00065 <a name="l00072"></a>00072 <span class="keywordtype">void</span> SetImage(<span class="keyword">const</span> <a class="code" href="classsf_1_1Image.htm" title="Image is the low-level class for loading and manipulating images.">Image</a>& Img); <a name="l00073"></a>00073 -<a name="l00081"></a>00081 <span class="keywordtype">void</span> SetSubRect(<span class="keyword">const</span> <a class="code" href="classsf_1_1Rect.htm" title="Rect is an utility class for manipulating rectangles.">IntRect</a>& SubRect); +<a name="l00081"></a>00081 <span class="keywordtype">void</span> SetSubRect(<span class="keyword">const</span> <a class="code" href="classsf_1_1Rect.htm">IntRect</a>& SubRect); <a name="l00082"></a>00082 <a name="l00091"></a>00091 <span class="keywordtype">void</span> Resize(<span class="keywordtype">float</span> Width, <span class="keywordtype">float</span> Height); <a name="l00092"></a>00092 -<a name="l00100"></a>00100 <span class="keywordtype">void</span> Resize(<span class="keyword">const</span> <a class="code" href="classsf_1_1Vector2.htm" title="Vector2 is an utility class for manipulating 2 dimensional vectors.">Vector2f</a>& Size); +<a name="l00100"></a>00100 <span class="keywordtype">void</span> Resize(<span class="keyword">const</span> <a class="code" href="classsf_1_1Vector2.htm">Vector2f</a>& Size); <a name="l00101"></a>00101 <a name="l00108"></a>00108 <span class="keywordtype">void</span> FlipX(<span class="keywordtype">bool</span> Flipped); <a name="l00109"></a>00109 @@ -77,9 +83,9 @@ <a name="l00117"></a>00117 <a name="l00124"></a>00124 <span class="keyword">const</span> <a class="code" href="classsf_1_1Image.htm" title="Image is the low-level class for loading and manipulating images.">Image</a>* GetImage() <span class="keyword">const</span>; <a name="l00125"></a>00125 -<a name="l00132"></a>00132 <span class="keyword">const</span> <a class="code" href="classsf_1_1Rect.htm" title="Rect is an utility class for manipulating rectangles.">IntRect</a>& GetSubRect() <span class="keyword">const</span>; +<a name="l00132"></a>00132 <span class="keyword">const</span> <a class="code" href="classsf_1_1Rect.htm">IntRect</a>& GetSubRect() <span class="keyword">const</span>; <a name="l00133"></a>00133 -<a name="l00140"></a>00140 <a class="code" href="classsf_1_1Vector2.htm" title="Vector2 is an utility class for manipulating 2 dimensional vectors.">Vector2f</a> GetSize() <span class="keyword">const</span>; +<a name="l00140"></a>00140 <a class="code" href="classsf_1_1Vector2.htm">Vector2f</a> GetSize() <span class="keyword">const</span>; <a name="l00141"></a>00141 <a name="l00152"></a>00152 <a class="code" href="classsf_1_1Color.htm" title="Color is an utility class for manipulating 32-bits RGBA colors.">Color</a> GetPixel(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> X, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> Y) <span class="keyword">const</span>; <a name="l00153"></a>00153 @@ -90,8 +96,8 @@ <a name="l00162"></a>00162 <span class="keyword">private</span> : <a name="l00163"></a>00163 <a name="l00165"></a>00165 <span class="comment">// Member data</span> -<a name="l00167"></a>00167 <span class="comment"></span> <a class="code" href="classsf_1_1ResourcePtr.htm" title="Safe pointer to a T resource (inheriting from sf::Resource<T>), its pointer is automatically...">ResourcePtr<Image></a> myImage; -<a name="l00168"></a>00168 <a class="code" href="classsf_1_1Rect.htm" title="Rect is an utility class for manipulating rectangles.">IntRect</a> mySubRect; +<a name="l00167"></a>00167 <span class="comment"></span> <a class="code" href="classsf_1_1ResourcePtr.htm">ResourcePtr<Image></a> myImage; +<a name="l00168"></a>00168 <a class="code" href="classsf_1_1Rect.htm">IntRect</a> mySubRect; <a name="l00169"></a>00169 <span class="keywordtype">bool</span> myIsFlippedX; <a name="l00170"></a>00170 <span class="keywordtype">bool</span> myIsFlippedY; <a name="l00171"></a>00171 }; @@ -100,7 +106,8 @@ <a name="l00174"></a>00174 <a name="l00175"></a>00175 <a name="l00176"></a>00176 <span class="preprocessor">#endif // SFML_SPRITE_HPP</span> -</pre></div> +</pre></div></div> + <p id="footer"> :: Copyright © 2007-2008 Laurent Gomila, all rights reserved :: Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.5.2</a> :: |