<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - MGui "v2" news]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=723</link>
		<description><![CDATA[The most recent posts in MGui "v2" news.]]></description>
		<lastBuildDate>Sat, 02 Nov 2013 09:53:31 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5887#p5887</link>
			<description><![CDATA[<p>Yes you are right it&#039;s &quot;onChar&quot;<br />(EDITED on top)</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sat, 02 Nov 2013 09:53:31 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5887#p5887</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5883#p5883</link>
			<description><![CDATA[<p>LOL I&#039;m so stupid, I didn&#039;t think of doing a loop.</p><p>Ok your code works, it just seems you have to do<br /></p><div class="codebox"><pre><code>rootWindow-&gt;onChar(i)</code></pre></div><p>instead of<br /></p><div class="codebox"><pre><code>rootWindow-&gt;onKeyDown(i)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (255)]]></author>
			<pubDate>Fri, 01 Nov 2013 22:49:52 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5883#p5883</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5879#p5879</link>
			<description><![CDATA[<p>unicode is important, or you&#039;ll be limited to type MAJ only,<br />you are using MGui.2 with the current branch of Maratis as a plugin yes ?<br />(current branch is ASCII, when the new experimental branch is unicode)</p><p>Anyway, some development is needed.</p><p>The only thing you can do right now is to access ASCII characters and special keys one by one :</p><div class="codebox"><pre><code>char name[2] = {0, 0};

// A to Z
for(int i=65; i&lt;=90; i++)
{
    name[0] = i;
    if(input-&gt;onKeyDown(name))
        rootWindow-&gt;onChar(i);
}

// 0 to 9
for(int i=48; i&lt;=57; i++)
{
    name[0] = i;
    if(input-&gt;onKeyDown(name))
        rootWindow-&gt;onChar(i);
}

// special keys
if(input-&gt;onKeyDown(&quot;UP&quot;))
    rootWindow-&gt;onKeyDown(MKEY_UP);
if(input-&gt;onKeyDown(&quot;DOWN&quot;))
    rootWindow-&gt;onKeyDown(MKEY_DOWN);
if(input-&gt;onKeyDown(&quot;LEFT&quot;))
    rootWindow-&gt;onKeyDown(MKEY_LEFT);
if(input-&gt;onKeyDown(&quot;RIGHT&quot;))
    rootWindow-&gt;onKeyDown(MKEY_RIGHT);

if(input-&gt;onKeyDown(&quot;BACKSPACE&quot;))
    rootWindow-&gt;onKeyDown(MKEY_BACKSPACE);
if(input-&gt;onKeyDown(&quot;ENTER&quot;))
    rootWindow-&gt;onKeyDown(MKEY_RETURN);
if(input-&gt;onKeyDown(&quot;SPACE&quot;))
    rootWindow-&gt;onKeyDown(MKEY_SPACE);

// and do the same with onKeyDown</code></pre></div><p>not pretty and not the best, but we&#039;ll add a better automatic way at some point.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Fri, 01 Nov 2013 11:55:36 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5879#p5879</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5869#p5869</link>
			<description><![CDATA[<p>I&#039;m using the experimental branch. But what has Unicode anything to do anyway, I just need to type A-Z and 0-9.<br />The point is that I would have to do if key==A then send A, if key==B then send B, etc</p>]]></description>
			<author><![CDATA[dummy@example.com (255)]]></author>
			<pubDate>Thu, 31 Oct 2013 20:30:29 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5869#p5869</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5866#p5866</link>
			<description><![CDATA[<p>yes right now a better mechanism is needed to feed the character events,<br />the trunk version of Maratis doesn&#039;t really support unicode like the new experimental branch.</p><p>I&#039;ll think about something, maybe committing the unicode fix in the trunk.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Thu, 31 Oct 2013 13:07:26 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5866#p5866</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5817#p5817</link>
			<description><![CDATA[<p>How do you use MGuiEditText?<br />I cannot type something in it because something like this does not exist:<br /></p><div class="codebox"><pre><code>if(input-&gt;onKeyDown(&quot;ANY&quot;))
   rootWindow-&gt;onKeyDown(input-&gt;currentlyPressedCharacter);</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (255)]]></author>
			<pubDate>Sun, 27 Oct 2013 21:58:14 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5817#p5817</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5576#p5576</link>
			<description><![CDATA[<p>The 3 additional external scripts (freeimage, freetype &amp; glfw) are not modified (as they require no linking). They are located in the &#039;Projects&#039; folder.</p><p>So you can test now without hesitation !</p>]]></description>
			<author><![CDATA[dummy@example.com (com3D)]]></author>
			<pubDate>Thu, 17 Oct 2013 14:06:21 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5576#p5576</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5575#p5575</link>
			<description><![CDATA[<div class="quotebox"><cite>com3D wrote:</cite><blockquote><p>And here is the latest version (I&#039;ll submit it in the tracker soon as Windows test will be complete):</p></blockquote></div><p>I am going to have to wait to test, looks like there are some additional premake4.lua scripts needed (freeimage, and a couple of others I take it.).</p>]]></description>
			<author><![CDATA[dummy@example.com (zester)]]></author>
			<pubDate>Thu, 17 Oct 2013 12:57:26 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5575#p5575</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5570#p5570</link>
			<description><![CDATA[<p>We are all learning a lot in this community ! <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (com3D)]]></author>
			<pubDate>Wed, 16 Oct 2013 19:38:31 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5570#p5570</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5568#p5568</link>
			<description><![CDATA[<p>Very nice com3D and thank you for taking on premake and getting it to build Maratis for us. I tried for awhile but the thirdparty libs gave me alot of trouble, not use to that as a linux user.</p>]]></description>
			<author><![CDATA[dummy@example.com (zester)]]></author>
			<pubDate>Wed, 16 Oct 2013 18:56:09 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5568#p5568</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5567#p5567</link>
			<description><![CDATA[<p>A few tests:</p><p>LINUX<br />- build using make &amp; GCC 4.6.3 <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />- build using Code::Blocks 12.11 &amp; GCC 4.6.3 <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>- binaries on Ubuntu Precise: <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />- binaries on Slackware 14: <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>WINDOWS<br />- build using vs2010 : cf above <img src="http://forum.maratis3d.com/img/smilies/sad.png" width="15" height="15" alt="sad" /><br />- build using minGW : cf above <img src="http://forum.maratis3d.com/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[dummy@example.com (com3D)]]></author>
			<pubDate>Wed, 16 Oct 2013 18:32:28 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5567#p5567</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5536#p5536</link>
			<description><![CDATA[<p>And here is the latest version (I&#039;ll submit it in the tracker soon as Windows test will be complete):</p><div class="codebox"><pre><code>-----------------------------------------------------------------------------------------------------------------------------
-- Test premake build
-----------------------------------------------------------------------------------------------------------------------------

rootDir = &quot;../../&quot;
sourcesDir = rootDir .. &quot;Sources/&quot;
thirdPartyDir = rootDir .. &quot;3rdparty/&quot;

-- Get arguments passed to the command line
for i=1, #_ARGS do
    if _ARGS[i] == &quot;cygwin&quot; then cygwin = true print(&quot;*****  BUILD USING CYGWIN  *****&quot;) end
    if _ARGS[i] == &quot;minGW&quot; then minGW = true print(&quot;*****  BUILD USING MINGW  *****&quot;) end
end


solution &quot;Test&quot;

    configurations { &quot;Debug&quot;, &quot;Release&quot; }
    platforms { &quot;x32&quot;, &quot;x64&quot; }

    if os.is(&quot;windows&quot;) then
        defines { &quot;_WIN32&quot;, &quot;WIN32&quot; }
        if minGW then defines { &quot;__MINGW32__&quot; } end
        if cygwin then defines { &quot;__CYGWIN__&quot; } end
    elseif os.is(&quot;macosx&quot;) then defines { &quot;__APPLE__&quot;, &quot;MACOSX&quot; }
    elseif os.is(&quot;linux&quot;) then defines { &quot;LINUX&quot;, &quot;linux&quot; }
    end

-- INCLUDES
    includedirs { 
        thirdPartyDir .. &quot;tinycthread/source&quot;,
        thirdPartyDir .. &quot;glee&quot;,
        thirdPartyDir .. &quot;glfw/include&quot;,
        thirdPartyDir .. &quot;freeimage/Source&quot;,
        thirdPartyDir .. &quot;freetype/include&quot;,
        thirdPartyDir .. &quot;tinyutf8&quot;,
        sourcesDir .. &quot;MSDK/MCore/Includes&quot;,
        sourcesDir .. &quot;MSDK/MEngine/Includes&quot;,
        sourcesDir .. &quot;MSDK/MGui/Includes&quot;,
        sourcesDir .. &quot;Common&quot;
    }

    if os.is(&quot;windows&quot;) then
        includedirs { thirdPartyDir .. &quot;windirent/include&quot; }
    end

    configuration &quot;Debug&quot;
        defines { &quot;DEBUG&quot; }
        flags { &quot;Symbols&quot; }

    configuration &quot;Release&quot;
        defines { &quot;NDEBUG&quot; }
        flags { &quot;Optimize&quot; }


    -- freeimage
    include ( rootDir .. &quot;Projects/3rdparty/freeimage&quot; )

    -- freetype
    include ( rootDir .. &quot;Projects/3rdparty/freetype&quot; )

    -- tinycthread
    project &quot;tinycthread&quot;
        kind &quot;StaticLib&quot;
        language &quot;C++&quot;
        files { thirdPartyDir .. &quot;tinycthread/**.h&quot;, 
                thirdPartyDir .. &quot;tinycthread/**.c&quot; }

    -- Glee
    project &quot;glee&quot;
        kind &quot;StaticLib&quot;
        language &quot;C++&quot;
        files { thirdPartyDir .. &quot;glee/**.h&quot;, 
                thirdPartyDir .. &quot;glee/**.c&quot; }
                
    -- glfw
    include ( rootDir .. &quot;Projects/3rdparty/glfw&quot; )

    -- MCore
    project &quot;mcore&quot;
        kind &quot;StaticLib&quot;
        language &quot;C++&quot;
        files { sourcesDir .. &quot;MSDK/MCore/**&quot; }
        defines { &quot;MCORE_STATIC&quot; }


    -- MEngine
    project &quot;mengine&quot;
        kind &quot;StaticLib&quot;
        language &quot;C++&quot;
        files { sourcesDir .. &quot;MSDK/MEngine/**&quot; }
        defines { &quot;MENGINE_STATIC&quot; }
    --    links { &quot;mcore&quot; } -- for SharedLib only


    -- MGui
    project &quot;mgui&quot;
        kind &quot;StaticLib&quot;
        language &quot;C++&quot;
        files { sourcesDir .. &quot;MSDK/MGui/**&quot; }
        defines { &quot;MGUI_STATIC&quot; }
    --    links { &quot;mengine&quot;, &quot;mcore&quot; } -- for SharedLib only


    -- MCommon
    project &quot;mcommon&quot;
        kind &quot;StaticLib&quot;
        language &quot;C++&quot;
        files { sourcesDir .. &quot;Common/Contexts/GL/**&quot; }
        files { sourcesDir .. &quot;Common/Loaders/FreeImage/**&quot; }
        files { sourcesDir .. &quot;Common/Loaders/Freetype/**&quot; }
        files { sourcesDir .. &quot;Common/Renderers/**&quot; }
        files { sourcesDir .. &quot;Common/GUI/**&quot; }
        --links { &quot;mgui&quot;, &quot;mengine&quot;, &quot;mcore&quot;, &quot;glfw&quot;, &quot;glee&quot;, &quot;freeimage&quot;, &quot;freetype&quot;, &quot;tinycthread&quot; } -- for SharedLib only


    -- Test
    project &quot;Test&quot;
        kind &quot;ConsoleApp&quot;
        language &quot;C++&quot;

        files { &quot;*.cpp&quot; }
        links {
            &quot;mcommon&quot;, &quot;mgui&quot;, &quot;mengine&quot;, &quot;mcore&quot;, 
            &quot;glfw&quot;, &quot;glee&quot;, &quot;freeimage&quot;, &quot;freetype&quot;, &quot;tinycthread&quot;
        }

        if os.is(&quot;macosx&quot;) then
            links {
                &quot;Cocoa.framework&quot;, &quot;OpenGL.framework&quot;, &quot;CoreServices.framework&quot;,
                &quot;Foundation.framework&quot;, &quot;IOKit.framework&quot;
            }

        elseif os.is(&quot;windows&quot;) then
            links { &quot;Opengl32&quot;, &quot;Winmm&quot; }

        elseif os.is(&quot;linux&quot;) then
            links { &quot;X11&quot;, &quot;Xxf86vm&quot;, &quot;Xrandr&quot;, &quot;Xi&quot;, &quot;GL&quot;, &quot;dl&quot;, &quot;pthread&quot;, &quot;rt&quot; }
            linkoptions { &quot;-Wl,-rpath=.&quot; }
        end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (com3D)]]></author>
			<pubDate>Tue, 15 Oct 2013 06:22:34 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5536#p5536</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5535#p5535</link>
			<description><![CDATA[<p>Yes Zester,</p><p>I&#039;ve pushed a linux fix to the premake template for experimental branch in the issue tracker.<br />See issue #20 <a href="http://code.google.com/p/maratis/issues/detail?id=20">here</a>, you can download the file. <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (com3D)]]></author>
			<pubDate>Tue, 15 Oct 2013 05:53:41 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5535#p5535</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5525#p5525</link>
			<description><![CDATA[<p>Are you uploading your premake scripts some-wheres? I want to look at adding network(enet?) support tonight.&nbsp; And see about getting Maratis in Qt4 QGLWidget.</p>]]></description>
			<author><![CDATA[dummy@example.com (zester)]]></author>
			<pubDate>Mon, 14 Oct 2013 21:22:31 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5525#p5525</guid>
		</item>
		<item>
			<title><![CDATA[Re: MGui "v2" news]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5524#p5524</link>
			<description><![CDATA[<p>With visual studio, these errors remain:</p><p>freeimage:<br />c:\...\branches\experimental\3rdparty\freeimage\source\zlib\zconf.h(447): fatal error C1083: Impossible d&#039;ouvrir le fichier include : &#039;unistd.h&#039; : No such file or directory</p><p>Windows complains not finding a POSIX header!<br />MinGW has its own version of this header, that&#039;s why I didn&#039;t get this error previously.</p><p>mcommon:<br />..\..\Sources\Common\Loaders\FreeImage\MFreeImageLoader.cpp(81): error C2440: &#039;=&#039; : impossible de convertir de &#039;unsigned int (__cdecl *)(void *,unsigned int,unsigned int,fi_handle)&#039; en &#039;FI_ReadProc&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cette conversion requiert reinterpret_cast, un cast de style C ou un cast de style fonction</p><p>Test:<br />I have to include &lt;windows.h&gt; to resolve sleep issue</p>]]></description>
			<author><![CDATA[dummy@example.com (com3D)]]></author>
			<pubDate>Mon, 14 Oct 2013 19:11:03 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5524#p5524</guid>
		</item>
	</channel>
</rss>
