Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#Actualirreversible

Posted 31 March 2013 - 11:53 PM

I generally use them for user callbacks:

 

 

 
class IWindow
{
public:
  //pass in ptr to object as we no longer have access to it directly
  static int OnMouse(int, int, int, IWindow*);
};
 
IWindow* w = new IWindow;
w->OnMouse = MyMouseProc;

#1irreversible

Posted 31 March 2013 - 11:52 PM

I generally use them for user callbacks:

 

 
class IWindow
{
public:
  static int OnMouse(int, int, int);
};
 
IWindow* w = new IWindow;
w->OnMouse = MyMouseProc;

PARTNERS