<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MunkyJunky.com</title>
	<atom:link href="http://munkyjunky.com/feed" rel="self" type="application/rss+xml" />
	<link>http://munkyjunky.com</link>
	<description></description>
	<lastBuildDate>Wed, 09 May 2012 16:57:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Getting WordPress Subpages</title>
		<link>http://munkyjunky.com/blog/3575</link>
		<comments>http://munkyjunky.com/blog/3575#comments</comments>
		<pubDate>Fri, 15 Apr 2011 18:49:14 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.munkyjunky.com/?p=3575</guid>
		<description><![CDATA[Having just finished a new WordPress theme, I thought it would be useful to share this bit of code that came in very useful for listing subpages on a parent page. Although it is possible to use a sidebar widget, &#8230; <a href="http://munkyjunky.com/blog/3575">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Having just finished a new WordPress theme, I thought it would be useful to share this bit of code that came in very useful for listing subpages on a parent page. Although it is possible to use a sidebar widget, I wanted to have the subpages listed on the page itself.</p>
<blockquote><p>&lt;?php $parent = $post-&gt;ID; ?&gt;</p>
<p>&lt;?php query_posts(&#8216;posts_per_page=15&amp;post_type=page&amp;post_parent=&#8217;.$parent);</p>
<p>while (have_posts()) : the_post(); ?&gt;</p>
<p>&lt;div&gt;<br />
&lt;a href=&#8221;&lt;?php the_permalink(); ?&gt;&#8221; title=&#8221;&lt;?php the_title_attribute(); ?&gt;&#8221;&gt;</p>
<p>&lt;h4 id=&#8221;subtext&#8221;&gt;&lt;?php the_title(); ?&gt;&lt;/h4&gt;&lt;/a&gt;</p>
<p>&lt;p&gt; &lt;?php the_excerpt(); ?&gt; &lt;/p&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;?php endwhile; ?&gt;</p></blockquote>
<p>&nbsp;</p>
<p>This creates a new Loop which gets all the subpages of the current page, displaying the title and excerpt of the subpage.</p>
]]></content:encoded>
			<wfw:commentRss>http://munkyjunky.com/blog/3575/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.10, Code::Blocks &amp; OpenGL</title>
		<link>http://munkyjunky.com/blog/270</link>
		<comments>http://munkyjunky.com/blog/270#comments</comments>
		<pubDate>Fri, 19 Mar 2010 23:19:56 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.munkyjunky.com/?p=270</guid>
		<description><![CDATA[I&#8217;m a Computer Games Tech student, so in my free time I like to think about/attempt making hobbyist games. I don&#8217;t want to go down the Python route as some people suggest, because that&#8217;s of no use to me in &#8230; <a href="http://munkyjunky.com/blog/270">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a Computer Games Tech student, so in my free time I like to think about/attempt making hobbyist games. I don&#8217;t want to go down the Python route as some people suggest, because that&#8217;s of no use to me in the future &#8211; the games industry is built on C++. As such, earlier today I pulled out my OpenGL book now that my university work is finished, hoping to go through an exercise or two. Turns out it was annoyingly hard to get everything set up playing nicely together, as every guide appears to be for Windows. So, for anyone trying to do this themselves, and for my own reference in the future, here&#8217;s how I got everything playing nice.</p>
<p>First, I installed my IDE of choice &#8211; Code::Blocks (version 8.02), available from the repositories. I&#8217;m going to assume you can get Code::Blocks set up and compiling C++ yourselves. Once that&#8217;s going, you need to link the GLUT/SDL libraries. You only really need GLUT <em>or</em> SDL, but I have both so I have the choice. For this, we need to download and install a few packages &#8211; namely <strong>freeglut3</strong> and <strong>freeglut3-dev</strong> for GLUT, and ﻿﻿<strong>libsdl1.2-dev</strong> for SDL. If you want to check out what they installed, GLUT files are installed to /usr/include/GL/, and SDL to /usr/include/SDL.</p>
<p>Second, we need to link CodeBlocks to the correct library files for it to be able to compile GLUT/SDL programs. Open up Code::Blocks, and click through to <strong>Settings &gt; Compiler and debugger..</strong>, then hit the <strong>Linker settings</strong> tab. Under &#8216;Link libraries&#8217;, you simply need to add the values &#8220;<strong>glut</strong>&#8221; for GLUT, and &#8220;<strong>SDL</strong>&#8220;, &#8220;<strong>GLU</strong>&#8221; &amp; &#8220;<strong>GL</strong>&#8221; for SDL.</p>
<p><a href="http://www.munkyjunky.com/wp-content/uploads/2010/03/linkers.jpg" rel="lightbox[270]"><img class="aligncenter size-medium wp-image-271" src="http://www.munkyjunky.com/wp-content/uploads/2010/03/linkers-300x267.jpg" alt="" width="300" height="267" /></a></p>
<p>That should be everything finished!</p>
<p>To give it a try, have a go running the pieces of code over on <a href="http://www.ferdychristant.com/blog/articles/DOMM-72MPPE" target="_blank">http://www.ferdychristant.com/blog/articles/DOMM-72MPPE</a>, where I found out how to do all this!</p>
]]></content:encoded>
			<wfw:commentRss>http://munkyjunky.com/blog/270/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

