Jump to content

  • Log In with Google      Sign In   
  • Create Account


#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