33 #ifndef H_CB_MAIN_INCLUDED
34 #define H_CB_MAIN_INCLUDED
42 #include <Dynacoe/Components/Clock.h>
43 #include <Dynacoe/Entity.h>
110 static void Wait(
int FPS);
137 float engineRealTimeMS;
141 static const Diagnostics & GetDiagnostics();
148 static double frameStart;
149 static double frameEnd;
158 static std::vector<Module*> modules;
166 static float lastDrawTime;
167 static float lastRunTime;
168 static float lastSysTime;
169 static float lastDebugTime;
171 static float curDrawTime;
172 static float curRunTime;
173 static float curSysTime;
174 static float curDebugTime;
176 static int frameCount;
179 static void render();
180 static void update();
182 static std::vector<Entity*> worlds;
184 static Entity * systemWorld;
188 #endif // H_CB_MAIN_INCLUDED
static int GetMaxFPS()
Gets the maximum FPS allowable by the Engine.
Basic interactive object.
Definition: Entity.h:62
static void Quit()
Ends the Engine execution loop.
Timing class with millisecond resolution.
Definition: Clock.h:59
static int Run()
Begins the Engine execution loop.
static std::string Version()
Returns the version of the Dynacoe library as a whole.
static void Wait(int FPS)
Sleeps until the time required for the target frames-per-second is reached.
static void AddModule(Module *)
static std::string GetBaseDirectory()
Returns the starting directory of Dynacoe.
static int Startup()
Initializes all Dynacoe assets.
static Entity::ID & Root()
Returns the toplevel Entity.
static void SetMaxFPS(int i)
Sets the ideal frame per second that the main loop should clock at.
Uniquely identifies an Entity.
Definition: Entity.h:67
Main class that handles automated updates of Dynacoe.
Definition: Dynacoe.h:55
static void AttachManager(Entity::ID)
Attaches a management-type entity.