<?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>dr_drsh Place &#187; Linux</title>
	<atom:link href="http://mostafa.mosmar.com/blog/category/technical/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://mostafa.mosmar.com/blog</link>
	<description></description>
	<lastBuildDate>Fri, 06 Nov 2009 00:42: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>My First OpenGL Application on Linux</title>
		<link>http://mostafa.mosmar.com/blog/2007/04/16/my-first-opengl-application-on-linux/</link>
		<comments>http://mostafa.mosmar.com/blog/2007/04/16/my-first-opengl-application-on-linux/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 00:15:32 +0000</pubDate>
		<dc:creator>مصطفى</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mostafa.mosmar.com/blog/2007/04/16/my-first-opengl-application-on-linux/</guid>
		<description><![CDATA[It is finally here, My first OpenGL application on Linux, I have written OpenGL code on Windows but this is the first time I do so on Linux, Yay for me! :) What is it do? Well it is just a demo based on a particle system class I wrote few days ago, The particle [...]]]></description>
			<content:encoded><![CDATA[<p class="english-text" >It is finally here, My first OpenGL application on Linux, I have written OpenGL code on Windows but this is the first time I do so on Linux, Yay for me! :)</p>
<p class="english-text" >What is it do? Well it is just a demo based on a <a href="http://en.wikipedia.org/wiki/Particle_system">particle system</a> class I wrote few days ago, The particle system is configurable via text files, By modifying these text files you can configure particle behavior, gravity,speed along axes ,etc, and see your changes real-time without having to restart, you can find these files under the &#8220;particles&#8221; directory.</p>
<p class="english-text" >The demo is very primitive, it has NO frustum culling so it might run VERY slowly on Weak-hearted machines.   </p>
<p class="english-text" >The demo uses this <a href='http://mostafa.mosmar.com/blog/wp-content/uploads/2007/04/ctexture.zip' title='CTexture class'>simple texturing class</a>  which in turns depend on  <a href="http://freeimage.sourceforge.net/">FreeImage library</a> to load textures.</p>
<p class="english-text" >.. One more thing , Here&#8217;s the function I used to generate random floating point numbers within a given range, I thought maybe someone would find it useful</p>
<div class="english-text"  class='code'>
float randomFloat( float minimum, float maximum )<br />
{<br />
   if( maximum == minimum )return minimum;<br />
   float range = maximum-minimum;<br />
   float displacment = ((float) rand() / (float)RAND_MAX) * range;<br />
   return minimum + displacment;<br />
}
</div>
<p class="english-text" >The function could use more optimization &#8220;since it is called several thousands of times per frame&#8221;.</p>
<p class="english-text" ><img src='http://mostafa.mosmar.com/blog/wp-content/uploads/2007/04/screenshot3.thumbnail.png' alt='More colors!' /><img src='http://mostafa.mosmar.com/blog/wp-content/uploads/2007/04/screenshot1.thumbnail.png' alt='Too much colors' /></p>
<p class="english-text" ><a href='http://mostafa.mosmar.com/dlcounter.php?filename=2007/04/ogl.zip' class='download-link zip-file' title='Particle System Demo'>Particle System Demo [30.5 KB] (477 hits)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mostafa.mosmar.com/blog/2007/04/16/my-first-opengl-application-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
