first test of the GUI remake:
(I ported it so that now it uses classes instead of in-line functions)
^ makes event handling a crap-load easier and takes quite a load off the CPU
yea... there's alot to be fixed...
first thing you'll notice is that hit-defs don't resize properly...
next you'll notice the buttons have no BGs
something you won't notice by image is the gainFocus() event (hover your cursor over a widget) breaks the UI
this is all being worked on and will be fixed (and then some) by the release
EDIT:
update:
everything works so far except fonts.
what you're seeing in yellow is an active hitdef
EDIT2:
update:
finally got the fonts working
I'm a freakin retard... heh
SDL sucks because it clears the GL context on video resize, which was causing each font character to have a list ID of 0L.
what was I doing?
I had the font creation code in the GUI-init code which was being deleted by the initial window creation.
so I moved the code to the GUI-resize code.
if SDL worked properly, I could keep the font creation in the GUI-init code
this is why GLFW is better (for being as limitless as SDL in not hijacking your run-loop)
(I ported it so that now it uses classes instead of in-line functions)
^ makes event handling a crap-load easier and takes quite a load off the CPU
yea... there's alot to be fixed...
first thing you'll notice is that hit-defs don't resize properly...
next you'll notice the buttons have no BGs
something you won't notice by image is the gainFocus() event (hover your cursor over a widget) breaks the UI
this is all being worked on and will be fixed (and then some) by the release
EDIT:
update:
everything works so far except fonts.
what you're seeing in yellow is an active hitdef
EDIT2:
update:
finally got the fonts working
I'm a freakin retard... heh
SDL sucks because it clears the GL context on video resize, which was causing each font character to have a list ID of 0L.
what was I doing?
I had the font creation code in the GUI-init code which was being deleted by the initial window creation.
so I moved the code to the GUI-resize code.
if SDL worked properly, I could keep the font creation in the GUI-init code
this is why GLFW is better (for being as limitless as SDL in not hijacking your run-loop)