hello guys, i am new in here and i need ur help. I am trying to make events using c++ by handling callbacks of glut. In other words i am using glutKeayboardFunc for listening to keys and through it i'll fire an event by event.Invoke(), so i can handle events via the class i am using. I succeeded in making this process using c# where i created events for network message listening and other stuff, but in c++ i am new to event handling there. I created delegate and other event requirements for the glutKeyboard func for example but there was errors. Can u give me a simple code to fire events by glutKeyboardFunc for example in other words change from gl callback procedures to events. tnx in advance
event
مغلق
Hi, as far as I believe, in C++ the mechanism is pointer to function assignment. Send your code sample and let us see.
Best wishes
هذا الموضوع مغلق.