Sign in to follow this  
Mekanikles

C++ Delegates problem (using GLFW)

Recommended Posts

Mekanikles    139
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this