Saturday, April 25, 2009

Hybrid now runs on 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"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.

So, ArcLib now has a good GUI. Enjoy!


Mason said...

Excellent job!

h3r3tic said...

So I herd you've fixed the backspace issue ;)

Cool that you have Hybrid working at last, but I'm a bit concerned about the module renaming you've done. It's not like the licensing forbids it or I have any personal feelings toward it, but it will be harder for you to synchronize with the official repo or submit patches, should you encounter any issues. So at one point, you might be reporting bugs for issues that have already been fixed in the official repo, but you haven't updated due to the files being different just because of their package names. I've placed all my code in the 'xf' namespace just so one can stuff it directly into their project without causing name clashes, so I don't really understand the tendency folks have to rename the modules :P

And last, but not the least... where are the screenies!? :D