I've looked around for a simple design object in C++ to work from, i understand most of the code involved but i'm rather new to the language so a 'base' to work from would help.
Concept is basicly a 'task' class as a base for a jobs to run in a loop.
BaseTask class > AudioTask class
Controller loop > stores a std list of pointers to tasks running
while (false) { loop over list and run each pointer then start over }
Additional tasks can be inserted into the list adding to the loop as is required, providing the basis for practically anything to be run per frame of a game. Later on i hope to move onto threading etc but for now i just want something simple.
Does anyone know of or want to share some example code that would fit this pattern?