From 7f7398e2952e45c8e96181127a17daab8d1cc072 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Mon, 20 Oct 2014 18:49:10 +0200 Subject: [PATCH] Moving included to header. --- graphics.cc | 11 +---------- graphics.hh | 13 ++++++++++++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/graphics.cc b/graphics.cc index 10039eb..9e5e6b8 100644 --- a/graphics.cc +++ b/graphics.cc @@ -1,13 +1,4 @@ -#include "main.hh" - -#include -#include -#include -#include -#include -#include -#include -#include +#include "graphics.hh" using namespace std; using namespace ACGL::OpenGL; diff --git a/graphics.hh b/graphics.hh index ee55c9f..14c1c8f 100644 --- a/graphics.hh +++ b/graphics.hh @@ -1,7 +1,16 @@ #ifndef GRAPHICS_HH_INCLUDED #define GRAPHICS_HH_INCLUDED -#endif +#include "main.hh" + +#include +#include +#include +#include +#include +#include +#include +#include // gets called after the OpenGL window is prepared, init of example specific stuff: void initCustomResources(); @@ -17,3 +26,5 @@ void resizeCallback( GLFWwindow *, int newWidth, int newHeight ); // to build the projection matrix: glm::mat4 buildFrustum( float phiInDegree, float near, float far, float aspectRatio); + +#endif