<?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>Ecere Blogging &#187; Samples</title>
	<atom:link href="http://www.ecere.com/blog/category/samples/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ecere.com/blog</link>
	<description>Latest Ecere SDK &#38; Apps Developments</description>
	<lastBuildDate>Sun, 18 Sep 2011 20:23:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Posix Regex</title>
		<link>http://www.ecere.com/blog/2008/03/12/posix-regex/</link>
		<comments>http://www.ecere.com/blog/2008/03/12/posix-regex/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 16:51:00 +0000</pubDate>
		<dc:creator>redj</dc:creator>
				<category><![CDATA[eC]]></category>
		<category><![CDATA[Samples]]></category>

		<guid isPermaLink="false">http://www.ecere.com/blog/2008/03/12/posix-regex/</guid>
		<description><![CDATA[Hi there! I&#8217;m Redj, Ecere Contributor. This is my first post and I hope to be posting more and more as I have interesting news to report or cool code snippets like I have today. Here is an early implementation of a Regex class the ecere way&#8230; Download Regex.ec Just add Regex.ec to your project [...]]]></description>
			<content:encoded><![CDATA[<p>Hi there!</p>
<p>I&#8217;m Redj, Ecere Contributor. <img src='http://www.ecere.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  This is my first post and I hope to be posting more and more as I have interesting news to report or cool code snippets like I have today.</p>
<p>Here is an early implementation of a Regex class the ecere way&#8230;</p>
<p>Download <a href='http://www.ecere.com/wordpress/wp-content/uploads/2008/03/regex.ec' title='Regex.ec'>Regex.ec</a></p>
<p>Just add Regex.ec to your project and use it as follows:</p>
<pre name="code" class="c">

import &quot;Regex&quot;

void TestRegex()
{
   char * result;
   Regex regex { &quot;[abc][xyz]&quot;, true };
   if((result = regex.Match(&quot;match me aZ I am&quot;)))
      printf(&quot;we have a match: %s\n&quot;, result);
}
</pre>
<p>Note that at line 6, <em>&#8220;[abc][xyz]&#8220;</em> sets the <em>regex</em> property and <em>true</em> sets the <em>caseInsensitive</em> property.</p>
<p>If you need the POSIX Regex extended syntax, just set the <em>extendedSyntax</em> property to true. Do the same for the <em>newLineException</em>, <em>lineStartException</em> and <em>lineEndException</em> properties if you need them. If you don&#8217;t know what they are, you probably don&#8217;t need them.</p>
<p><strong>For Windows users:</strong> Note that in order to use this class, you will need to download the user contributed mingw regex library <a href="http://sourceforge.net/project/downloading.php?group_id=2435&amp;use_mirror=internap&amp;filename=mingw-libgnurx-2.5.1-bin.tar.gz&amp;44133859">mingw-libgnurx-2.5.1-bin.tar.gz</a> and extract it&#8217;s contents (libgnurx-0.dll) to Ecere SDK&#8217;s bin directory. You will also need this <a href='http://www.ecere.com/wordpress/wp-content/uploads/2008/03/regex.h' title='regex.h'>regex.h</a> file to be present in mingw&#8217;s include directory.</p>
<p><strong>For Linux users:</strong> Make sure your include paths are correctly set to find regex.h and you should be all set.</p>
<p>If you need assistance or would like to give use feedback, join us in #ecere on freenode.net or visit the forums and wiki (see links in the Ecere section of the sidebar).</p>
<p>That&#8217;s it for now. Enjoy!</p>
<p>Posted by Redj</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecere.com/blog/2008/03/12/posix-regex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windowless Desktop Toys, Chess &amp; New SDK for Linux (0.41.17.5)</title>
		<link>http://www.ecere.com/blog/2007/11/14/windowless-desktop-toys-chess-new-sdk-for-linux-041175/</link>
		<comments>http://www.ecere.com/blog/2007/11/14/windowless-desktop-toys-chess-new-sdk-for-linux-041175/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 05:50:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ongoing Efforts]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Samples]]></category>

		<guid isPermaLink="false">http://www.ecere.com/blog/2007/11/14/windowless-desktop-toys-chess-new-sdk-for-linux-041175/</guid>
		<description><![CDATA[After much wrestling with X, XRender, XShape &#38; GLX, here they are: the Linux versions of the desktop toys. Here is a screen shot of them in action: The Linux Ecere SDK now supports alpha blending window contents through the &#8220;bool alphaBlend&#8221; property of the window class. When set to true, the window has its [...]]]></description>
			<content:encoded><![CDATA[<p>After much wrestling with X, XRender, XShape &amp; GLX, here they are: the Linux versions of the desktop toys.</p>
<p>Here is a screen shot of them in action:</p>
<p><a href="http://www.ecere.com/wordpress/wp-content/uploads/2007/11/argb.png" title="Linux Toys Shot"><img src="http://www.ecere.com/wordpress/wp-content/uploads/2007/11/argb.thumbnail.png" alt="Linux Toys Shot" /></a></p>
<p>The Linux Ecere SDK now supports alpha blending window contents through the &#8220;bool alphaBlend&#8221; property of the window class. When set to true, the window has its own alpha channel which a proper composite manager such as xcompmgr will happily use to make parts of the window translucent or completely transparent. The SDK will also automatically redefine the input region through the XShape extension so that clicks in transparent areas will click through on the underneath windows.</p>
<p>To render non opaque contents on the window, use a value smaller than 255 for the surface&#8217;s foreground and background while calling drawing methods (Proper support through both XRender and OpenGL in this release). You can also use a value between 0 and 1.0 (exclusively) for the window&#8217;s opacity to automatically have a translucent background drawn for you.</p>
<p>A few fixes were also done to the X OpenGL driver and it should now properly run anti-aliased if possible. Here is a binary version of Chess for those who do not yet wish to install the SDK.</p>
<p>Feel free to let me know if you get these running nicely on your system, and I&#8217;ll appreciate if you send me nice screen shots of those in action on your own favorite Linux desktop environment. The above screenshot is lacking hiragana characters on the cube as a CJK enabled Unicode font was not found by fontconfig. Ensure you have one of those (see previous post) if you wish to see them.</p>
<p>Download Ecere SDK 0.41.17.5 for Linux (obsolete)</p>
<p><a href="http://www.ecere.com/downloads/chess.tgz">Download Ecere Chess for Linux </a></p>
<p><a href="http://www.ecere.com/downloads/desktopToys.tgz">Download Windowless Hiragana Cube and Color Spheres for Linux</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecere.com/blog/2007/11/14/windowless-desktop-toys-chess-new-sdk-for-linux-041175/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ecere Chess Source Code</title>
		<link>http://www.ecere.com/blog/2007/10/22/ecere-chess-source-code/</link>
		<comments>http://www.ecere.com/blog/2007/10/22/ecere-chess-source-code/#comments</comments>
		<pubDate>Mon, 22 Oct 2007 20:04:21 +0000</pubDate>
		<dc:creator>Jérôme</dc:creator>
				<category><![CDATA[Samples]]></category>
		<category><![CDATA[User Applications]]></category>

		<guid isPermaLink="false">http://www.ecere.com/blog/2007/10/22/ecere-chess-source-code/</guid>
		<description><![CDATA[Here I just decided to share the source code for Ecere Chess with the world&#8230; The 3D chess set is looking quite good, modeled by my friend Gaetan Loyer. Ecere Chess has a very simple AI, seeing 2 moves of each players ahead&#8230; It doesn&#8217;t know anything about openings or endings. But it will probably [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ecere.com/wordpress/wp-content/uploads/2007/10/chess3d.png" title="3D Chess"><img src="http://www.ecere.com/wordpress/wp-content/uploads/2007/10/chess3d.thumbnail.png" alt="3D Chess" /></a> Here I just decided to share the source code for Ecere Chess with the world&#8230;</p>
<p>The 3D chess set is looking quite good, modeled by my friend Gaetan Loyer.<br />
Ecere Chess has a very simple AI, seeing 2 moves of each players ahead&#8230;</p>
<p>It doesn&#8217;t know anything about openings or endings.</p>
<p>But it will probably still kick your a**.</p>
<p>Here&#8217;s the <a href="http://www.ecere.com/downloads/EcereChessSource.tar.gz">source code</a>.</p>
<p><a href="http://www.ecere.com/downloads/chess.tgz">Linux Executable</a></p>
<p><a href="http://www.ecere.com/downloads/eChess.zip">Windows Executable</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecere.com/blog/2007/10/22/ecere-chess-source-code/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Some 3D Desktop Toys</title>
		<link>http://www.ecere.com/blog/2007/10/21/some-3d-desktop-toys/</link>
		<comments>http://www.ecere.com/blog/2007/10/21/some-3d-desktop-toys/#comments</comments>
		<pubDate>Sun, 21 Oct 2007 06:07:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Samples]]></category>

		<guid isPermaLink="false">http://www.ecere.com/wordpress/2007/10/21/some-3d-desktop-toys/</guid>
		<description><![CDATA[Searching for what could make a nice little demo of Unicode in 3D, here&#8217;s what I came up with: Cube toys to learn hiragana (Source code /  Windows executable &#8211; rar&#8217;ed / Linux executable &#8211; tar&#8217;ed) (Note: This looks for the Arial Unicode MS font, if it can&#8217;t find it you won&#8217;t see the hiragana) [...]]]></description>
			<content:encoded><![CDATA[<p>Searching for what could make a nice little demo of Unicode in 3D, here&#8217;s what I came up with:</p>
<p><a href="http://www.ecere.com/wordpress/wp-content/uploads/2007/10/cubes.PNG" title="Hiragana Cube"><img src="http://www.ecere.com/wordpress/wp-content/uploads/2007/10/cubes.thumbnail.PNG" alt="Hiragana Cube" /></a> Cube toys to learn hiragana <img src='http://www.ecere.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>(<a href="http://www.ecere.com/wordpress/wp-content/uploads/2007/11/hiraganacube.ec">Source code </a>/  <a href="http://www.ecere.com/wordpress/wp-content/uploads/2007/10/cube.rar">Windows executable &#8211; rar&#8217;ed</a> / <a href="http://www.ecere.com/downloads/desktopToys.tgz">Linux executable &#8211; tar&#8217;ed</a>)<br />
(Note: This looks for the Arial Unicode MS font, if it can&#8217;t find it you won&#8217;t see the hiragana)</p>
<p>I made it float on the Windows desktop using alpha-blending&#8230;</p>
<p>Then I got carried away and wanted to see how easy it would be to make something similar to <a href="http://www.coreytabaka.com">Corey Tabaka</a>&#8216;s color spheres:</p>
<p><a href="http://www.ecere.com/wordpress/wp-content/uploads/2007/10/spheres.PNG" title="Color Spheres"><img src="http://www.ecere.com/wordpress/wp-content/uploads/2007/10/spheres.thumbnail.PNG" alt="Color Spheres" /></a> (<a href="http://www.ecere.com/wordpress/wp-content/uploads/2007/11/colorspheres.ec">Source code</a> / <a href="http://www.ecere.com/wordpress/wp-content/uploads/2007/10/spheres.rar" title="Color Spheres">Windows executable &#8211; rar&#8217;ed</a> / <a href="http://www.ecere.com/downloads/desktopToys.tgz">Linux executable &#8211; tar&#8217;ed</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecere.com/blog/2007/10/21/some-3d-desktop-toys/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

