<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://cegui.org.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Using_CEGUI_with_SDL_and_OpenGL_%28Latest%29</id>
		<title>Using CEGUI with SDL and OpenGL (Latest) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://cegui.org.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Using_CEGUI_with_SDL_and_OpenGL_%28Latest%29"/>
		<link rel="alternate" type="text/html" href="http://cegui.org.uk/wiki/index.php?title=Using_CEGUI_with_SDL_and_OpenGL_(Latest)&amp;action=history"/>
		<updated>2026-10-04T07:38:44Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>http://cegui.org.uk/wiki/index.php?title=Using_CEGUI_with_SDL_and_OpenGL_(Latest)&amp;diff=5472&amp;oldid=prev</id>
		<title>Kordex at 13:26, 8 August 2014</title>
		<link rel="alternate" type="text/html" href="http://cegui.org.uk/wiki/index.php?title=Using_CEGUI_with_SDL_and_OpenGL_(Latest)&amp;diff=5472&amp;oldid=prev"/>
				<updated>2014-08-08T13:26:43Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:26, 8 August 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/*&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/*&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * Adapted by: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Johnny Souza - johnnysouza.js&lt;/del&gt;@gmail.com&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * Adapted by: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Mikko Kortelainen &amp;lt;kordex&lt;/ins&gt;@gmail.com&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * Date: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;19/01/07 17:00&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * Date: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;20140808&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * Description: Using CEGUI with SDL and OpenGL&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * Description: Using CEGUI with SDL and OpenGL&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; */&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; */&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kordex</name></author>	</entry>

	<entry>
		<id>http://cegui.org.uk/wiki/index.php?title=Using_CEGUI_with_SDL_and_OpenGL_(Latest)&amp;diff=5471&amp;oldid=prev</id>
		<title>Kordex at 13:26, 8 August 2014</title>
		<link rel="alternate" type="text/html" href="http://cegui.org.uk/wiki/index.php?title=Using_CEGUI_with_SDL_and_OpenGL_(Latest)&amp;diff=5471&amp;oldid=prev"/>
				<updated>2014-08-08T13:26:04Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:26, 8 August 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{VersionBadge|0.8}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{VersionBadge|0.8}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://www.libsdl.org SDL (Simple DirectMedia Layer)] is an excellent library for writing portable games and other multimedia applications, but as it is a low-level library, it has no native support for GUI interfaces.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://www.libsdl.org SDL (Simple DirectMedia Layer)] is an excellent library for writing portable games and other multimedia applications, but as it is a low-level library, it has no native support for GUI interfaces.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Before running I had to symlink/copy these files to current working directory of the binary:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* DejaVuSans-10.font&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* DejaVuSans-12.font&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* DejaVuSans.ttf&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* TaharezLook.imageset&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* TaharezLook.looknfeel&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* TaharezLook.png&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/*&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/*&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * Adapted by: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mikko Kortelainen &amp;lt;kordex&lt;/del&gt;@gmail.com&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * Adapted by: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Johnny Souza - johnnysouza.js&lt;/ins&gt;@gmail.com&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * Date: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;20140809 15&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;10&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * Date: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;19/01/07 17&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;00&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * Description: Using CEGUI with SDL and OpenGL&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * Description: Using CEGUI with SDL and OpenGL&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; */&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; */&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 302:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 311:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	using namespace CEGUI;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	using namespace CEGUI;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	SchemeManager::getSingleton().createFromFile( &amp;quot;/opt/cegui-0.8.4/share/cegui-0/schemes/TaharezLook.scheme&amp;quot; );&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	FontManager::getSingleton().createFromFile( &amp;quot;/opt/cegui-0.8.4/share/cegui-0/fonts/DejaVuSans-10.font&amp;quot; );&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	System::getSingleton().getDefaultGUIContext().setDefaultFont( &amp;quot;DejaVuSans-10&amp;quot; );&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	System::getSingleton().getDefaultGUIContext().getMouseCursor().setDefaultImage( &amp;quot;TaharezLook/MouseArrow&amp;quot; );&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	System::getSingleton().getDefaultGUIContext().setDefaultTooltipType( &amp;quot;TaharezLook/Tooltip&amp;quot; );&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	WindowManager&amp;amp; wmgr = WindowManager::getSingleton();&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	WindowManager&amp;amp; wmgr = WindowManager::getSingleton();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	Window* myRoot = wmgr.createWindow( &amp;quot;DefaultWindow&amp;quot;, &amp;quot;root&amp;quot; );&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	Window* myRoot = wmgr.createWindow( &amp;quot;DefaultWindow&amp;quot;, &amp;quot;root&amp;quot; );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kordex</name></author>	</entry>

	<entry>
		<id>http://cegui.org.uk/wiki/index.php?title=Using_CEGUI_with_SDL_and_OpenGL_(Latest)&amp;diff=5470&amp;oldid=prev</id>
		<title>Kordex: Created page with &quot;{{VersionBadge|0.8}} [http://www.libsdl.org SDL (Simple DirectMedia Layer)] is an excellent library for writing portable games and other multimedia applications, but as it is ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://cegui.org.uk/wiki/index.php?title=Using_CEGUI_with_SDL_and_OpenGL_(Latest)&amp;diff=5470&amp;oldid=prev"/>
				<updated>2014-08-08T12:11:51Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{VersionBadge|0.8}} [http://www.libsdl.org SDL (Simple DirectMedia Layer)] is an excellent library for writing portable games and other multimedia applications, but as it is ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{VersionBadge|0.8}}&lt;br /&gt;
[http://www.libsdl.org SDL (Simple DirectMedia Layer)] is an excellent library for writing portable games and other multimedia applications, but as it is a low-level library, it has no native support for GUI interfaces.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * Adapted by: Mikko Kortelainen &amp;lt;kordex@gmail.com&amp;gt;&lt;br /&gt;
 * Date: 20140809 15:10&lt;br /&gt;
 * Description: Using CEGUI with SDL and OpenGL&lt;br /&gt;
 */&lt;br /&gt;
 &lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
#include &amp;lt;SDL/SDL.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
#include &amp;quot;CEGUI/CEGUI.h&amp;quot;&lt;br /&gt;
#include &amp;quot;CEGUI/RendererModules/OpenGL/GLRenderer.h&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
#include &amp;lt;GL/gl.h&amp;gt;&lt;br /&gt;
#include &amp;lt;GL/glu.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
std::map&amp;lt;SDLKey, CEGUI::Key::Scan&amp;gt; m_keymap;&lt;br /&gt;
&lt;br /&gt;
void initializeKeyMap() {&lt;br /&gt;
  m_keymap[SDLK_1] = CEGUI::Key::One;&lt;br /&gt;
  m_keymap[SDLK_2] = CEGUI::Key::Two;&lt;br /&gt;
  m_keymap[SDLK_3] = CEGUI::Key::Three;&lt;br /&gt;
  m_keymap[SDLK_4] = CEGUI::Key::Four;&lt;br /&gt;
  m_keymap[SDLK_5] = CEGUI::Key::Five;&lt;br /&gt;
  m_keymap[SDLK_6] = CEGUI::Key::Six;&lt;br /&gt;
  m_keymap[SDLK_7] = CEGUI::Key::Seven;&lt;br /&gt;
  m_keymap[SDLK_8] = CEGUI::Key::Eight;&lt;br /&gt;
  m_keymap[SDLK_9] = CEGUI::Key::Nine;&lt;br /&gt;
  m_keymap[SDLK_0] = CEGUI::Key::Zero;&lt;br /&gt;
 &lt;br /&gt;
  m_keymap[SDLK_q] = CEGUI::Key::Q;&lt;br /&gt;
  m_keymap[SDLK_w] = CEGUI::Key::W;&lt;br /&gt;
  m_keymap[SDLK_e] = CEGUI::Key::E;&lt;br /&gt;
  m_keymap[SDLK_r] = CEGUI::Key::R;&lt;br /&gt;
  m_keymap[SDLK_t] = CEGUI::Key::T;&lt;br /&gt;
  m_keymap[SDLK_y] = CEGUI::Key::Y;&lt;br /&gt;
  m_keymap[SDLK_u] = CEGUI::Key::U;&lt;br /&gt;
  m_keymap[SDLK_i] = CEGUI::Key::I;&lt;br /&gt;
  m_keymap[SDLK_o] = CEGUI::Key::O;&lt;br /&gt;
  m_keymap[SDLK_p] = CEGUI::Key::P;&lt;br /&gt;
  m_keymap[SDLK_a] = CEGUI::Key::A;&lt;br /&gt;
  m_keymap[SDLK_s] = CEGUI::Key::S;&lt;br /&gt;
  m_keymap[SDLK_d] = CEGUI::Key::D;&lt;br /&gt;
  m_keymap[SDLK_f] = CEGUI::Key::F;&lt;br /&gt;
  m_keymap[SDLK_g] = CEGUI::Key::G;&lt;br /&gt;
  m_keymap[SDLK_h] = CEGUI::Key::H;&lt;br /&gt;
  m_keymap[SDLK_j] = CEGUI::Key::J;&lt;br /&gt;
  m_keymap[SDLK_k] = CEGUI::Key::K;&lt;br /&gt;
  m_keymap[SDLK_l] = CEGUI::Key::L;&lt;br /&gt;
  m_keymap[SDLK_z] = CEGUI::Key::Z;&lt;br /&gt;
  m_keymap[SDLK_x] = CEGUI::Key::X;&lt;br /&gt;
  m_keymap[SDLK_c] = CEGUI::Key::C;&lt;br /&gt;
  m_keymap[SDLK_v] = CEGUI::Key::V;&lt;br /&gt;
  m_keymap[SDLK_b] = CEGUI::Key::B;&lt;br /&gt;
  m_keymap[SDLK_n] = CEGUI::Key::N;&lt;br /&gt;
  m_keymap[SDLK_m] = CEGUI::Key::M;&lt;br /&gt;
 &lt;br /&gt;
  m_keymap[SDLK_COMMA] = CEGUI::Key::Comma;&lt;br /&gt;
  m_keymap[SDLK_PERIOD] = CEGUI::Key::Period;&lt;br /&gt;
  m_keymap[SDLK_SLASH] = CEGUI::Key::Slash;&lt;br /&gt;
  m_keymap[SDLK_BACKSLASH] = CEGUI::Key::Backslash;&lt;br /&gt;
  m_keymap[SDLK_MINUS] = CEGUI::Key::Minus;&lt;br /&gt;
  m_keymap[SDLK_EQUALS] = CEGUI::Key::Equals;&lt;br /&gt;
  m_keymap[SDLK_SEMICOLON] = CEGUI::Key::Semicolon;&lt;br /&gt;
  m_keymap[SDLK_LEFTBRACKET] = CEGUI::Key::LeftBracket;&lt;br /&gt;
  m_keymap[SDLK_RIGHTBRACKET] = CEGUI::Key::RightBracket;&lt;br /&gt;
  m_keymap[SDLK_QUOTE] = CEGUI::Key::Apostrophe;&lt;br /&gt;
  m_keymap[SDLK_BACKQUOTE] = CEGUI::Key::Grave;&lt;br /&gt;
 &lt;br /&gt;
  m_keymap[SDLK_RETURN] = CEGUI::Key::Return;&lt;br /&gt;
  m_keymap[SDLK_SPACE] = CEGUI::Key::Space;&lt;br /&gt;
  m_keymap[SDLK_BACKSPACE] = CEGUI::Key::Backspace;&lt;br /&gt;
  m_keymap[SDLK_TAB] = CEGUI::Key::Tab;&lt;br /&gt;
 &lt;br /&gt;
  m_keymap[SDLK_ESCAPE] = CEGUI::Key::Escape;&lt;br /&gt;
  m_keymap[SDLK_PAUSE] = CEGUI::Key::Pause;&lt;br /&gt;
  m_keymap[SDLK_SYSREQ] = CEGUI::Key::SysRq;&lt;br /&gt;
  m_keymap[SDLK_POWER] = CEGUI::Key::Power;&lt;br /&gt;
 &lt;br /&gt;
  m_keymap[SDLK_NUMLOCK] = CEGUI::Key::NumLock;&lt;br /&gt;
  m_keymap[SDLK_SCROLLOCK] = CEGUI::Key::ScrollLock;&lt;br /&gt;
 &lt;br /&gt;
  m_keymap[SDLK_F1] = CEGUI::Key::F1;&lt;br /&gt;
  m_keymap[SDLK_F2] = CEGUI::Key::F2;&lt;br /&gt;
  m_keymap[SDLK_F3] = CEGUI::Key::F3;&lt;br /&gt;
  m_keymap[SDLK_F4] = CEGUI::Key::F4;&lt;br /&gt;
  m_keymap[SDLK_F5] = CEGUI::Key::F5;&lt;br /&gt;
  m_keymap[SDLK_F6] = CEGUI::Key::F6;&lt;br /&gt;
  m_keymap[SDLK_F7] = CEGUI::Key::F7;&lt;br /&gt;
  m_keymap[SDLK_F8] = CEGUI::Key::F8;&lt;br /&gt;
  m_keymap[SDLK_F9] = CEGUI::Key::F9;&lt;br /&gt;
  m_keymap[SDLK_F10] = CEGUI::Key::F10;&lt;br /&gt;
  m_keymap[SDLK_F11] = CEGUI::Key::F11;&lt;br /&gt;
  m_keymap[SDLK_F12] = CEGUI::Key::F12;&lt;br /&gt;
  m_keymap[SDLK_F13] = CEGUI::Key::F13;&lt;br /&gt;
  m_keymap[SDLK_F14] = CEGUI::Key::F14;&lt;br /&gt;
  m_keymap[SDLK_F15] = CEGUI::Key::F15;&lt;br /&gt;
 &lt;br /&gt;
  m_keymap[SDLK_LCTRL] = CEGUI::Key::LeftControl;&lt;br /&gt;
  m_keymap[SDLK_LALT] = CEGUI::Key::LeftAlt;&lt;br /&gt;
  m_keymap[SDLK_LSHIFT] = CEGUI::Key::LeftShift;&lt;br /&gt;
  m_keymap[SDLK_LSUPER] = CEGUI::Key::LeftWindows;&lt;br /&gt;
  m_keymap[SDLK_RCTRL] = CEGUI::Key::RightControl;&lt;br /&gt;
  m_keymap[SDLK_RALT] = CEGUI::Key::RightAlt;&lt;br /&gt;
  m_keymap[SDLK_RSHIFT] = CEGUI::Key::RightShift;&lt;br /&gt;
  m_keymap[SDLK_RSUPER] = CEGUI::Key::RightWindows;&lt;br /&gt;
  m_keymap[SDLK_MENU] = CEGUI::Key::AppMenu;&lt;br /&gt;
 &lt;br /&gt;
  m_keymap[SDLK_KP0] = CEGUI::Key::Numpad0;&lt;br /&gt;
  m_keymap[SDLK_KP1] = CEGUI::Key::Numpad1;&lt;br /&gt;
  m_keymap[SDLK_KP2] = CEGUI::Key::Numpad2;&lt;br /&gt;
  m_keymap[SDLK_KP3] = CEGUI::Key::Numpad3;&lt;br /&gt;
  m_keymap[SDLK_KP4] = CEGUI::Key::Numpad4;&lt;br /&gt;
  m_keymap[SDLK_KP5] = CEGUI::Key::Numpad5;&lt;br /&gt;
  m_keymap[SDLK_KP6] = CEGUI::Key::Numpad6;&lt;br /&gt;
  m_keymap[SDLK_KP7] = CEGUI::Key::Numpad7;&lt;br /&gt;
  m_keymap[SDLK_KP8] = CEGUI::Key::Numpad8;&lt;br /&gt;
  m_keymap[SDLK_KP9] = CEGUI::Key::Numpad9;&lt;br /&gt;
  m_keymap[SDLK_KP_PERIOD] = CEGUI::Key::Decimal;&lt;br /&gt;
  m_keymap[SDLK_KP_PLUS] = CEGUI::Key::Add;&lt;br /&gt;
  m_keymap[SDLK_KP_MINUS] = CEGUI::Key::Subtract;&lt;br /&gt;
  m_keymap[SDLK_KP_MULTIPLY] = CEGUI::Key::Multiply;&lt;br /&gt;
  m_keymap[SDLK_KP_DIVIDE] = CEGUI::Key::Divide;&lt;br /&gt;
  m_keymap[SDLK_KP_ENTER] = CEGUI::Key::NumpadEnter;&lt;br /&gt;
 &lt;br /&gt;
  m_keymap[SDLK_UP] = CEGUI::Key::ArrowUp;&lt;br /&gt;
  m_keymap[SDLK_LEFT] = CEGUI::Key::ArrowLeft;&lt;br /&gt;
  m_keymap[SDLK_RIGHT] = CEGUI::Key::ArrowRight;&lt;br /&gt;
  m_keymap[SDLK_DOWN] = CEGUI::Key::ArrowDown;&lt;br /&gt;
 &lt;br /&gt;
  m_keymap[SDLK_HOME] = CEGUI::Key::Home;&lt;br /&gt;
  m_keymap[SDLK_END] = CEGUI::Key::End;&lt;br /&gt;
  m_keymap[SDLK_PAGEUP] = CEGUI::Key::PageUp;&lt;br /&gt;
  m_keymap[SDLK_PAGEDOWN] = CEGUI::Key::PageDown;&lt;br /&gt;
  m_keymap[SDLK_INSERT] = CEGUI::Key::Insert;&lt;br /&gt;
  m_keymap[SDLK_DELETE] = CEGUI::Key::Delete;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void handle_mouse_down(Uint8 button)&lt;br /&gt;
{&lt;br /&gt;
  CEGUI::GUIContext&amp;amp; context = CEGUI::System::getSingleton().getDefaultGUIContext(); &lt;br /&gt;
	switch ( button ) {&lt;br /&gt;
		case SDL_BUTTON_LEFT:&lt;br /&gt;
			context.injectMouseButtonDown(CEGUI::LeftButton);&lt;br /&gt;
			break;&lt;br /&gt;
		case SDL_BUTTON_MIDDLE:&lt;br /&gt;
			context.injectMouseButtonDown(CEGUI::MiddleButton);&lt;br /&gt;
			break;&lt;br /&gt;
		case SDL_BUTTON_RIGHT:&lt;br /&gt;
			context.injectMouseButtonDown(CEGUI::RightButton);&lt;br /&gt;
			break;&lt;br /&gt;
 &lt;br /&gt;
		case SDL_BUTTON_WHEELDOWN:&lt;br /&gt;
			context.injectMouseWheelChange( -1 );&lt;br /&gt;
			break;&lt;br /&gt;
		case SDL_BUTTON_WHEELUP:&lt;br /&gt;
			context.injectMouseWheelChange( +1 );&lt;br /&gt;
			break;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
void handle_mouse_up(Uint8 button)&lt;br /&gt;
{&lt;br /&gt;
  CEGUI::GUIContext&amp;amp; context = CEGUI::System::getSingleton().getDefaultGUIContext(); &lt;br /&gt;
	switch ( button )&lt;br /&gt;
	{&lt;br /&gt;
		case SDL_BUTTON_LEFT:&lt;br /&gt;
			context.injectMouseButtonUp(CEGUI::LeftButton);&lt;br /&gt;
			break;&lt;br /&gt;
		case SDL_BUTTON_MIDDLE:&lt;br /&gt;
			context.injectMouseButtonUp(CEGUI::MiddleButton);&lt;br /&gt;
			break;&lt;br /&gt;
		case SDL_BUTTON_RIGHT:&lt;br /&gt;
			context.injectMouseButtonUp(CEGUI::RightButton);&lt;br /&gt;
			break;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
void inject_input (bool &amp;amp; must_quit) &lt;br /&gt;
{&lt;br /&gt;
  CEGUI::GUIContext&amp;amp; context = CEGUI::System::getSingleton().getDefaultGUIContext(); &lt;br /&gt;
&lt;br /&gt;
	initializeKeyMap();&lt;br /&gt;
&lt;br /&gt;
	SDL_Event e;&lt;br /&gt;
	/* go through all available events */&lt;br /&gt;
	while (SDL_PollEvent(&amp;amp;e)) {&lt;br /&gt;
		/* we use a switch to determine the event type */&lt;br /&gt;
		switch (e.type) {&lt;br /&gt;
			/* mouse motion handler */&lt;br /&gt;
			case SDL_MOUSEMOTION:&lt;br /&gt;
				/* we inject the mouse position directly. */&lt;br /&gt;
			  //				CEGUI::System::getSingleton().injectMousePosition(static_cast&amp;lt;float&amp;gt;(e.motion.x),static_cast&amp;lt;float&amp;gt;(e.motion.y));&lt;br /&gt;
			  context.injectMousePosition( static_cast&amp;lt;float&amp;gt;(e.motion.x),static_cast&amp;lt;float&amp;gt;(e.motion.y) );&lt;br /&gt;
				break;&lt;br /&gt;
 &lt;br /&gt;
			/* mouse down handler */&lt;br /&gt;
			case SDL_MOUSEBUTTONDOWN:&lt;br /&gt;
				/* let a special function handle the mouse button down event */&lt;br /&gt;
				handle_mouse_down (e.button.button);&lt;br /&gt;
				break;&lt;br /&gt;
 &lt;br /&gt;
			/* mouse up handler */&lt;br /&gt;
			case SDL_MOUSEBUTTONUP:&lt;br /&gt;
				/* let a special function handle the mouse button up event */&lt;br /&gt;
				handle_mouse_up (e.button.button);&lt;br /&gt;
				break;&lt;br /&gt;
 &lt;br /&gt;
			/* key down */&lt;br /&gt;
			case SDL_KEYDOWN:&lt;br /&gt;
				/* to tell CEGUI that a key was pressed, we inject the scancode. */&lt;br /&gt;
			  //e.key.keysym.scancode&lt;br /&gt;
			  context.injectKeyDown(m_keymap[e.key.keysym.sym]);&lt;br /&gt;
				/* as for the character it's a litte more complicated.&lt;br /&gt;
				 * we'll use for translated unicode value.&lt;br /&gt;
				 * this is described in more detail below.&lt;br /&gt;
				 */&lt;br /&gt;
				if ((e.key.keysym.unicode &amp;amp; 0xFF80) == 0) {&lt;br /&gt;
					context.injectChar(e.key.keysym.unicode &amp;amp; 0x7F);&lt;br /&gt;
				}&lt;br /&gt;
				break;&lt;br /&gt;
 &lt;br /&gt;
			/* key up */&lt;br /&gt;
			case SDL_KEYUP:&lt;br /&gt;
				/* like before we inject the scancode directly. */&lt;br /&gt;
			  //e.key.keysym.scancode&lt;br /&gt;
				context.injectKeyUp(m_keymap[e.key.keysym.sym]);&lt;br /&gt;
				break;&lt;br /&gt;
 &lt;br /&gt;
			/* WM quit event occured */&lt;br /&gt;
			case SDL_QUIT:&lt;br /&gt;
				must_quit = true;&lt;br /&gt;
				break;&lt;br /&gt;
 &lt;br /&gt;
			case SDL_VIDEORESIZE:&lt;br /&gt;
			  CEGUI::System::getSingleton().notifyDisplaySizeChanged(CEGUI::Sizef(e.resize.w,e.resize.h));&lt;br /&gt;
				break;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
void inject_time_pulse(double&amp;amp; last_time_pulse)&lt;br /&gt;
{&lt;br /&gt;
	/* get current &amp;quot;run-time&amp;quot; in seconds */&lt;br /&gt;
	double t = 0.001*SDL_GetTicks();&lt;br /&gt;
	/* inject the time that passed since the last call */&lt;br /&gt;
	CEGUI::System::getSingleton().injectTimePulse( float(t-last_time_pulse) );&lt;br /&gt;
	/* store the new time as the last time */&lt;br /&gt;
	last_time_pulse = t;&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
void render_gui()&lt;br /&gt;
{&lt;br /&gt;
	/* clear the colour buffer */&lt;br /&gt;
	glClear( GL_COLOR_BUFFER_BIT );&lt;br /&gt;
	/* render the GUI :) */&lt;br /&gt;
	CEGUI::System::getSingleton().renderAllGUIContexts();&lt;br /&gt;
	/* Update the screen */&lt;br /&gt;
	SDL_GL_SwapBuffers();&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
void main_loop () &lt;br /&gt;
{&lt;br /&gt;
	bool must_quit = false;&lt;br /&gt;
	/* get &amp;quot;run-time&amp;quot; in seconds */&lt;br /&gt;
	double last_time_pulse = 0.001*static_cast&amp;lt;double&amp;gt;(SDL_GetTicks());&lt;br /&gt;
	while (!must_quit) {&lt;br /&gt;
		inject_input (must_quit);&lt;br /&gt;
		inject_time_pulse (last_time_pulse);&lt;br /&gt;
		render_gui ();&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
int main (int argc, char **argv) &lt;br /&gt;
{&lt;br /&gt;
	SDL_Surface * screen;&lt;br /&gt;
	atexit (SDL_Quit);&lt;br /&gt;
	SDL_Init (SDL_INIT_VIDEO);&lt;br /&gt;
	screen = SDL_SetVideoMode (600, 480, 0, SDL_OPENGL);&lt;br /&gt;
	if (screen == NULL) {&lt;br /&gt;
		/* Se ainda não der, desiste! */ &lt;br /&gt;
		fprintf (stderr, &amp;quot;Impossível ajustar ao vídeo: %s\n&amp;quot;, SDL_GetError ());&lt;br /&gt;
		exit (1);&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
        CEGUI::OpenGLRenderer::bootstrapSystem();&lt;br /&gt;
	SDL_ShowCursor (SDL_DISABLE);&lt;br /&gt;
	SDL_EnableUNICODE (1);&lt;br /&gt;
	SDL_EnableKeyRepeat (SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);&lt;br /&gt;
&lt;br /&gt;
	using namespace CEGUI;&lt;br /&gt;
	WindowManager&amp;amp; wmgr = WindowManager::getSingleton();&lt;br /&gt;
	Window* myRoot = wmgr.createWindow( &amp;quot;DefaultWindow&amp;quot;, &amp;quot;root&amp;quot; );&lt;br /&gt;
	System::getSingleton().getDefaultGUIContext().setRootWindow( myRoot );&lt;br /&gt;
	FrameWindow* fWnd = static_cast&amp;lt;FrameWindow*&amp;gt;(&lt;br /&gt;
						      wmgr.createWindow( &amp;quot;TaharezLook/FrameWindow&amp;quot;, &amp;quot;testWindow&amp;quot; ));&lt;br /&gt;
	myRoot-&amp;gt;addChild( fWnd );&lt;br /&gt;
	// position a quarter of the way in from the top-left of parent.&lt;br /&gt;
	fWnd-&amp;gt;setPosition( UVector2( UDim( 0.25f, 0.0f ), UDim( 0.25f, 0.0f ) ) );&lt;br /&gt;
	// set size to be half the size of the parent&lt;br /&gt;
	fWnd-&amp;gt;setSize( USize( UDim( 0.5f, 0.0f ), UDim( 0.5f, 0.0f ) ) );&lt;br /&gt;
	fWnd-&amp;gt;setText( &amp;quot;Hello World!&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	main_loop();&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kordex</name></author>	</entry>

	</feed>