C++ Manager Data Fields
I'm trying to create a manager class in C++, or at least collection of
globally available data fields. I simply want to be able to get and set
some global data without the need of functions. I also want to avoid using
Singletons if I can.
I've tried a static class:
#ifndef MANAGER_H
#define MANAGER_H
class Manager
{
public:
static float AspectRatio;
};
No comments:
Post a Comment