Jump to content
  • Advertisement
Sign in to follow this  

C++ Delegates problem (using GLFW)

This topic is 4065 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I recently started looking into delegates in C++, Fast Delegates to be precise. I want to use them with GLFW callbacks (i.e. the key/resize/mouse callbacks). The problem is that they require a function pointer of the type GLFWfun (which seems nothing more than a void pointer with the correct parameters). It works fine to just send ordinary void* functions instead. Is it possible to convert from the fastdelegate type (or any delegate type for that matter) to something that the GLFW callback functions can handle? thanx /Mekanikles [Edited by - Mekanikles on May 3, 2007 3:21:12 PM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!