What would be a good method of defining wrapper class objects (outside of main) in a large framework that need to be implemented, in a way, which they can be accessed from anywhere.
(e.g. using Clock.Get_Deltatime() in gameobjects like Player.cpp and yet running Clock.Update() in main.cpp)
Can I do something like this?
#ifndef PLUGIN_H
#define PLUGIN_H
#include "DisplayManager.h"
#include "EventHandler.h"
#include "Time.h"
DisplayManager Display;
EventHandler Input;
Time Clock;
#endif PLUGIN_H
Than include Plugin.h anytime I need to access Display, Clock and Input? Considering this, singletons and static variables right now, but am looking for suggestions and want to know what will work best for this situation (I'm relatively new to C++ and don't have enough OOP experience to know whats the best tool for the job).