[SDL] Making a GUI system in SDL

Albert Zeyer albert.zeyer at rwth-aachen.de
Mon Feb 11 10:55:49 PST 2008


Am 11.02.2008 um 18:39 schrieb L-28C:
>
> I tried to place a function pointer called "m_pfnOnClickEvent" and let
> the main application set a function to it when it creates the  
> button...
> but C++ doesn't let you put member methods onto function pointers, and
> my program is 100% object-oriented.

C++ does.

Look here:
http://www.newty.de/fpt/fpt.html

But you need also to give the pointer to the instance of course.



More information about the SDL mailing list