Original Post
Im working on a class that takes input commands and runs a function based off that command.
for now, Classes can AddCmd''s to the global ref of Cmd_pipeline, but I can''t figure out a way to pass function pointers for what the cmd is going todo.
For example:
-main.cpp-
//include Cmd_PipeLine
//Cmd_PipeLine gCmdPipe;
//main
//scan for Cmds
-WindowClass.h-
//Class CreateWindow
//void CreateWindow();
//gCmdPipe.AddCmd("CreateWindow",CreateWindow());
AddCmd(string& cmdlabel,void *Function???);
I''m a bit lost on how to store or even pass a function pointer to that class function, or even call it in the AddCmd body....?