www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Hybrid GUI now runs on top of the ArcLib core


The Hybrid GUI has been ported to the Arclib Core from DOG.
The main issues in the process was deleting DOG and getting xf.input to 
run on top of SDL (thanks LeoD). In addition, I added input code to read 
in SDL's unicode characters. The only problem is that now when you type 
the backspace character, it inserts the backspace character instead of 
deleting text. The xf. imports were changed to arc.hybrid, as well. 
Besides calling

arc.window.open("Title", 800, 600, 0);
while(true){ arc.input.process(); arc.window.clear(); <--hybrid code--> 
arc.window.swap(); }

and renaming the imports, all the code should pretty much work the same. 
Here are the examples I have working so far 
http://svn.dsource.org/projects/arclib/trunk/examples/hybrid/ .

So, ArcLib now has a good GUI. Enjoy!

~ Clay

PS. ArcLib is a collection of useful 2D game programming library code. 
All libraries are dependent on the Arc core, simply known as Arc. Arc 
contains a core that provides basic windowing, input, drawing, and math 
functionality. From there, Arc offers several add-ons for advanced 
features such as OpenAL sound, scenegraph, GUI, 2d physics, freetype 
font rendering, particle effects, sprites, and a camera system.
Apr 25 2009