<?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>Program &#38; Design &#187; C++</title>
	<atom:link href="http://programanddesign.com/category/cpp/feed/" rel="self" type="application/rss+xml" />
	<link>http://programanddesign.com</link>
	<description>Tips, tricks, tutorials, and tools on programming &#38; web design</description>
	<lastBuildDate>Wed, 07 Jul 2010 21:55:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Qt + OpenGL Code Example</title>
		<link>http://programanddesign.com/cpp/qt-opengl-code-example/</link>
		<comments>http://programanddesign.com/cpp/qt-opengl-code-example/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 03:56:46 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://programanddesign.com/?p=282</guid>
		<description><![CDATA[I wanted to develop a game using OpenGL but I was having trouble deciding on a windowing library. Somebody suggested I try Qt, so I decided to give it another shot. I heard it was good, but the editor it came with was so foreign and unintuitive. Unfortunately, this overshadowed what a beautiful library Qt [...]]]></description>
		<wfw:commentRss>http://programanddesign.com/cpp/qt-opengl-code-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Draw an Unfilled Circle</title>
		<link>http://programanddesign.com/cpp/draw-an-unfilled-circle/</link>
		<comments>http://programanddesign.com/cpp/draw-an-unfilled-circle/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 02:38:00 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[opengl]]></category>

		<guid isPermaLink="false">http://programanddesign.com/?p=202</guid>
		<description><![CDATA[OpenGL doesn't seem to have any functions for drawing an unfilled circle, so you can use this code instead. It uses lines, so you can adjust the line thickness with glLineWidth and anti-alias it with glEnable(GL_LINE_SMOOTH) if you want. void drawCircle&#40;GLfloat x, GLfloat y, GLfloat r&#41; &#123; &#160; &#160; static const double inc = M_PI [...]]]></description>
		<wfw:commentRss>http://programanddesign.com/cpp/draw-an-unfilled-circle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Human-readable file size in C</title>
		<link>http://programanddesign.com/cpp/human-readable-file-size-in-c/</link>
		<comments>http://programanddesign.com/cpp/human-readable-file-size-in-c/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 21:11:38 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://programanddesign.com/?p=182</guid>
		<description><![CDATA[I did a quick search on Google and couldn't find any code that did this in C/C++, so here's my contribution for the day. Just remember the allocate enough space in the buffer -- about 10 chars should be enough. char* readable_fs&#40;double size/*in bytes*/, char *buf&#41; &#123; &#160; &#160; int i = 0; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://programanddesign.com/cpp/human-readable-file-size-in-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Draw IplImage</title>
		<link>http://programanddesign.com/cpp/draw-iplimage/</link>
		<comments>http://programanddesign.com/cpp/draw-iplimage/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 19:55:08 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[draw]]></category>
		<category><![CDATA[gl]]></category>
		<category><![CDATA[iplimage]]></category>
		<category><![CDATA[opencv]]></category>
		<category><![CDATA[render]]></category>

		<guid isPermaLink="false">http://programanddesign.com/?p=174</guid>
		<description><![CDATA[OpenCV stores images in a data structure called IplImage. They provide methods for rendering it to the screen, but if you want to use OpenGL instead (which should be faster and gives you more flexibility), I wrote the following code. It should be a little faster than loading the IplImage into a texture first, and [...]]]></description>
		<wfw:commentRss>http://programanddesign.com/cpp/draw-iplimage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get frame count from AVI</title>
		<link>http://programanddesign.com/cpp/get-frame-count-from-avi/</link>
		<comments>http://programanddesign.com/cpp/get-frame-count-from-avi/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 19:48:54 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[avi]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[frame]]></category>
		<category><![CDATA[opencv]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://programanddesign.com/?p=171</guid>
		<description><![CDATA[Here's a little code snippet I wrote to get the number of frames in an AVI video file. int getFrameCount&#40;const char *filename&#41; &#123; &#160; &#160; // only works on AVIs &#160; &#160; int frameCount; &#160; &#160; char size&#91;4&#93;; &#160; &#160; ifstream fin&#40;filename, ios::in&#124;ios::binary&#41;; &#160; &#160; if&#40;!fin&#41; &#123; &#160; &#160; &#160; &#160; cerr &#60;&#60; &#34;Could not [...]]]></description>
		<wfw:commentRss>http://programanddesign.com/cpp/get-frame-count-from-avi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
