I was just browsing some GLUI code and was just wondering how you could write something like this for LWJGL. Without multithreaded callbacks you’re pretty much stuffed aren’t you?
Would it be possible to cache mouse clicks, keyboard entries etc and process them all in sequence to determine the current state of all the widgets (button pressed, drop-down dropped down etc), and to call the relevant action methods? Is this kind of buffering implemented currently?
(Incidentally, check out this gem from GLUI’s stdinc.h:
[quote] /***** Small value when we want to do a comparison to ‘close to zero’ *****/
#ifndef FUDGE
#define FUDGE .00001
#endif
[/quote]
Oh, brother…)