I don't seem to figure out the correct syntax for calling a function that has its pointer stored in an array.
The following is the code sample:
// define function pointers
// we could have 4 rendering functions.
RenderFunctions = &MainGame::GameRender; // normal game rendering.
RenderFunctions = &MainGame::SplashRender; // render the splash screen.
RenderFunctions = &MainGame::TitleScreenRender; // render the title screen.
RenderFunctions = &MainGame::RenderMapDesigner; // render the designer.
FunctionPointer F = (RenderFunctions[CurrentRenderStage]);
(*F)(nullptr); // this is the only statement that does not compile.
The error message I am getting from visual studio is: Operand of '*' must be a pointer.
Any help is highly appreciated. :)