<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SDL Entities</title>
	<atom:link href="http://www.sdltutorials.com/sdl-entities/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sdltutorials.com/sdl-entities/</link>
	<description>SDL Tutorials - Game Tutorials - Programming Tutorials</description>
	<lastBuildDate>Tue, 09 Mar 2010 12:44:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Terrence</title>
		<link>http://www.sdltutorials.com/sdl-entities/comment-page-6/#comment-6838</link>
		<dc:creator>Terrence</dc:creator>
		<pubDate>Sun, 28 Feb 2010 04:24:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/sdl-entities/#comment-6838</guid>
		<description>Hello, and thanks for the tutorials! They have helped me improve my code flow and organization 100 fold!

My problem is however, when I run this program, the Yoshi image only animates once, and then it stops. I assumed I needed to set Oscillate but that doesn&#039;t work either.

Why doesn&#039;t this animation loop?</description>
		<content:encoded><![CDATA[<p>Hello, and thanks for the tutorials! They have helped me improve my code flow and organization 100 fold!</p>
<p>My problem is however, when I run this program, the Yoshi image only animates once, and then it stops. I assumed I needed to set Oscillate but that doesn&#8217;t work either.</p>
<p>Why doesn&#8217;t this animation loop?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kahshoo-heem</title>
		<link>http://www.sdltutorials.com/sdl-entities/comment-page-6/#comment-6379</link>
		<dc:creator>kahshoo-heem</dc:creator>
		<pubDate>Sat, 30 Jan 2010 13:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/sdl-entities/#comment-6379</guid>
		<description>Also, instead of using &quot;-lGL&quot;, I&#039;m using &quot;-lOpenGL32&quot; and/or &quot;-lglu32&quot; at my mingw environment to compile opengl applications.</description>
		<content:encoded><![CDATA[<p>Also, instead of using &#8220;-lGL&#8221;, I&#8217;m using &#8220;-lOpenGL32&#8243; and/or &#8220;-lglu32&#8243; at my mingw environment to compile opengl applications.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kahshoo-heem</title>
		<link>http://www.sdltutorials.com/sdl-entities/comment-page-6/#comment-6374</link>
		<dc:creator>kahshoo-heem</dc:creator>
		<pubDate>Sat, 30 Jan 2010 01:42:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/sdl-entities/#comment-6374</guid>
		<description>Can you get to compile a simple console program like &quot;Hello World&quot;? I think you might try this at first, before running applications that depend on SDL or other  specific libraries.</description>
		<content:encoded><![CDATA[<p>Can you get to compile a simple console program like &#8220;Hello World&#8221;? I think you might try this at first, before running applications that depend on SDL or other  specific libraries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ersan Güray</title>
		<link>http://www.sdltutorials.com/sdl-entities/comment-page-6/#comment-6312</link>
		<dc:creator>Ersan Güray</dc:creator>
		<pubDate>Thu, 21 Jan 2010 18:10:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/sdl-entities/#comment-6312</guid>
		<description>My question is not related with entities. I am using andLinux(Ubuntu) on Windows. I would like to execute .exe files also on Windows. I tried mingw32 but still there existed errors like :

To compile:

&gt;i586-mingw32msvc-g++ CApp.cpp -o CApp.exe -lGL -lSDL -lSDLmain -lSDL_ttf -lmingw32 -I/usr/i586-mingw32msvc/include/

error:
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status

I am using this command to compile as usual:

&gt; g++ CApp.cpp -o CApp.exe -lGL -lSDL -lSDLmain -lSDL_ttf

and resulting CApp.exe works well on Linux. What to add for Windows executable files?

So, do you have any idea for this?</description>
		<content:encoded><![CDATA[<p>My question is not related with entities. I am using andLinux(Ubuntu) on Windows. I would like to execute .exe files also on Windows. I tried mingw32 but still there existed errors like :</p>
<p>To compile:</p>
<p>&gt;i586-mingw32msvc-g++ CApp.cpp -o CApp.exe -lGL -lSDL -lSDLmain -lSDL_ttf -lmingw32 -I/usr/i586-mingw32msvc/include/</p>
<p>error:<br />
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -lGL<br />
collect2: ld returned 1 exit status</p>
<p>I am using this command to compile as usual:</p>
<p>&gt; g++ CApp.cpp -o CApp.exe -lGL -lSDL -lSDLmain -lSDL_ttf</p>
<p>and resulting CApp.exe works well on Linux. What to add for Windows executable files?</p>
<p>So, do you have any idea for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Jones</title>
		<link>http://www.sdltutorials.com/sdl-entities/comment-page-6/#comment-6309</link>
		<dc:creator>Tim Jones</dc:creator>
		<pubDate>Tue, 19 Jan 2010 12:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/sdl-entities/#comment-6309</guid>
		<description>Fixed comments for ya.</description>
		<content:encoded><![CDATA[<p>Fixed comments for ya.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.sdltutorials.com/sdl-entities/comment-page-6/#comment-5862</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sun, 13 Dec 2009 21:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/sdl-entities/#comment-5862</guid>
		<description>Hi again!  
I realized that my error must come from how the vector is passed when I call CEntity::GetEntityList().  Once I changed the definition to 
static std::vector&lt;CEntity*&gt; &amp; GetEntityList()
it worked!  
James</description>
		<content:encoded><![CDATA[<p>Hi again!<br />
I realized that my error must come from how the vector is passed when I call CEntity::GetEntityList().  Once I changed the definition to<br />
static std::vector&lt;CEntity*&gt; &amp; GetEntityList()<br />
it worked!<br />
James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.sdltutorials.com/sdl-entities/comment-page-6/#comment-5853</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sun, 13 Dec 2009 02:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/sdl-entities/#comment-5853</guid>
		<description>Hi Tim!  
Thanks for the great tutorials!  I&#039;ve worked through all of them thus far and I have learned SO much!  I just had a question about this tutorial.  I wanted to keep the vector private so I moved the definition and then added an accessor function as follows:  
In the header: 
static std::vector&lt;CEntity*&gt;  GetEntityList()
 {

   return EntityList;

 }

Now, instead of directly using EntityList, I call the accessor.  The problem that I am having is with the push_back calls.  ie. 

CEntity::GetEntityList().push_back(&amp;Entity1);
CEntity::GetEntityList().push_back(&amp;Entity2);

If I call the empty() function right after this, it returns true.  Also, if I move the definition in the header back to public, it still has this problem.  Only when I access the public vector directly can a push_back() call increase the size() of the vector.  

Am I missing something?  This seems odd to me that I am unable to use the accessor...  Any advice would be greatly appreciated!  

Thanks, 
James</description>
		<content:encoded><![CDATA[<p>Hi Tim!<br />
Thanks for the great tutorials!  I&#8217;ve worked through all of them thus far and I have learned SO much!  I just had a question about this tutorial.  I wanted to keep the vector private so I moved the definition and then added an accessor function as follows:<br />
In the header:<br />
static std::vector&lt;CEntity*&gt;  GetEntityList()<br />
 {</p>
<p>   return EntityList;</p>
<p> }</p>
<p>Now, instead of directly using EntityList, I call the accessor.  The problem that I am having is with the push_back calls.  ie. </p>
<p>CEntity::GetEntityList().push_back(&amp;Entity1);<br />
CEntity::GetEntityList().push_back(&amp;Entity2);</p>
<p>If I call the empty() function right after this, it returns true.  Also, if I move the definition in the header back to public, it still has this problem.  Only when I access the public vector directly can a push_back() call increase the size() of the vector.  </p>
<p>Am I missing something?  This seems odd to me that I am unable to use the accessor&#8230;  Any advice would be greatly appreciated!  </p>
<p>Thanks,<br />
James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blizz</title>
		<link>http://www.sdltutorials.com/sdl-entities/comment-page-6/#comment-5117</link>
		<dc:creator>Blizz</dc:creator>
		<pubDate>Thu, 22 Oct 2009 18:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/sdl-entities/#comment-5117</guid>
		<description>It works now, I have no Idea why, but it works the way I did it above... :)

Thanks, going for the other tutorials now!</description>
		<content:encoded><![CDATA[<p>It works now, I have no Idea why, but it works the way I did it above&#8230; <img src='http://www.sdltutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks, going for the other tutorials now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blizz</title>
		<link>http://www.sdltutorials.com/sdl-entities/comment-page-6/#comment-5115</link>
		<dc:creator>Blizz</dc:creator>
		<pubDate>Thu, 22 Oct 2009 18:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/sdl-entities/#comment-5115</guid>
		<description>CEntity Entity3  is just under the other two entities in CApp.h.

 Like that:   


Capp.h:
private:
        CEntity         Entity1;
	CEntity         Entity2;
	CEntity         Entity3;

  

OnInit:


    if(Entity1.OnLoad(&quot;entity1.bmp&quot;, 64, 64, 8) == false) {
        return false;
    }

	 
    if(Entity2.OnLoad(&quot;entity2.bmp&quot;, 64, 64, 8) == false) {
        return false;
    }


    
    if(Entity3.OnLoad(&quot;entity2.bmp&quot;, 64, 64, 8) == false) {
        return false;
    }

   CEntity::EntityList.push_back(&amp;Entity1);
   CEntity::EntityList.push_back(&amp;Entity2);
   CEntity::EntityList.push_back(&amp;Entity3);</description>
		<content:encoded><![CDATA[<p>CEntity Entity3  is just under the other two entities in CApp.h.</p>
<p> Like that:   </p>
<p>Capp.h:<br />
private:<br />
        CEntity         Entity1;<br />
	CEntity         Entity2;<br />
	CEntity         Entity3;</p>
<p>OnInit:</p>
<p>    if(Entity1.OnLoad(&#8220;entity1.bmp&#8221;, 64, 64, <img src='http://www.sdltutorials.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> == false) {<br />
        return false;<br />
    }</p>
<p>    if(Entity2.OnLoad(&#8220;entity2.bmp&#8221;, 64, 64, <img src='http://www.sdltutorials.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> == false) {<br />
        return false;<br />
    }</p>
<p>    if(Entity3.OnLoad(&#8220;entity2.bmp&#8221;, 64, 64, <img src='http://www.sdltutorials.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> == false) {<br />
        return false;<br />
    }</p>
<p>   CEntity::EntityList.push_back(&amp;Entity1);<br />
   CEntity::EntityList.push_back(&amp;Entity2);<br />
   CEntity::EntityList.push_back(&amp;Entity3);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Jones</title>
		<link>http://www.sdltutorials.com/sdl-entities/comment-page-6/#comment-5114</link>
		<dc:creator>Tim Jones</dc:creator>
		<pubDate>Thu, 22 Oct 2009 17:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/sdl-entities/#comment-5114</guid>
		<description>Can I ask where CEntity Entity3 is in your code? It has to be somewhere where it won&#039;t be destroyed (like as a part of CApp).</description>
		<content:encoded><![CDATA[<p>Can I ask where CEntity Entity3 is in your code? It has to be somewhere where it won&#8217;t be destroyed (like as a part of CApp).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
