<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - MGui "v2" news]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=723&amp;type=atom"/>
	<updated>2013-11-02T09:53:31Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=723</id>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5887#p5887"/>
			<content type="html"><![CDATA[<p>Yes you are right it&#039;s &quot;onChar&quot;<br />(EDITED on top)</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-11-02T09:53:31Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5887#p5887</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5883#p5883"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[255]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2540</uri>
			</author>
			<updated>2013-11-01T22:49:52Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5883#p5883</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5879#p5879"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-11-01T11:55:36Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5879#p5879</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5869#p5869"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[255]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2540</uri>
			</author>
			<updated>2013-10-31T20:30:29Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5869#p5869</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5866#p5866"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-10-31T13:07:26Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5866#p5866</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5817#p5817"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[255]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2540</uri>
			</author>
			<updated>2013-10-27T21:58:14Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5817#p5817</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5576#p5576"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[com3D]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1488</uri>
			</author>
			<updated>2013-10-17T14:06:21Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5576#p5576</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5575#p5575"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[zester]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=516</uri>
			</author>
			<updated>2013-10-17T12:57:26Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5575#p5575</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5570#p5570"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[com3D]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1488</uri>
			</author>
			<updated>2013-10-16T19:38:31Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5570#p5570</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5568#p5568"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[zester]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=516</uri>
			</author>
			<updated>2013-10-16T18:56:09Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5568#p5568</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5567#p5567"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[com3D]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1488</uri>
			</author>
			<updated>2013-10-16T18:32:28Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5567#p5567</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5536#p5536"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[com3D]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1488</uri>
			</author>
			<updated>2013-10-15T06:22:34Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5536#p5536</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5535#p5535"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[com3D]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1488</uri>
			</author>
			<updated>2013-10-15T05:53:41Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5535#p5535</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5525#p5525"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[zester]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=516</uri>
			</author>
			<updated>2013-10-14T21:22:31Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5525#p5525</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MGui "v2" news]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5524#p5524"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[com3D]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1488</uri>
			</author>
			<updated>2013-10-14T19:11:03Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5524#p5524</id>
		</entry>
</feed>
