i'm new here and have a (banal) question:
i'm creating a GUI-enviroment with opengl and have a button-class.
i want to do a button-click-test, but i need a method to say to this function that it has to check EVERY created instance of this button-class.
i tried to find something via google, but nothing.
does anybody know a solution?? for instance with dynamic reservation??

thank you very very much in advance


ps: i need only the general answer, i've already created the graphics function.
**if it will work i'll post my project for all***
super-beautiful buttons ;-)