[SDL] Making a GUI system in SDL
Solra Bizna
sbizna at tejat.net
Mon Feb 11 11:48:52 PST 2008
On Feb 11, 2008 9:39 AM, L-28C <kixdemp at gmail.com> wrote:
> 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.
Most solutions to this problem I'm aware of use a Callback class which
you subclass. (There has GOT to be a better portable way!)
-:sigma.SB
More information about the SDL
mailing list