Fix up include headers, try to reduce dependencies

Ensure that all headers are self-sufficient instead of relying on included
headers to include headers for execution.
This commit is contained in:
2016-07-16 23:27:52 +10:00
parent 6da8eff9b1
commit a426461dad
17 changed files with 176 additions and 159 deletions
+5 -4
View File
@@ -1,8 +1,9 @@
#if 1
#include "Dengine/AssetManager.h"
#include "Dengine/Renderer.h"
#include "Dengine/Math.h"
#include "Dengine/Common.h"
#include "Dengine/Debug.h"
#include "Dengine/Math.h"
#include "Dengine/OpenGL.h"
#include "WorldTraveller/WorldTraveller.h"
@@ -136,8 +137,8 @@ int main()
f32 framesPerSecond = 1.0f / secondsElapsed;
char textBuffer[256];
snprintf(textBuffer, ARRAY_COUNT(textBuffer), "Dengine | %f ms/f | %f fps", msPerFrame,
framesPerSecond);
snprintf(textBuffer, ARRAY_COUNT(textBuffer),
"Dengine | %f ms/f | %f fps", msPerFrame, framesPerSecond);
glfwSetWindowTitle(window, textBuffer);
titleUpdateFrequencyInSeconds = 0.5f;