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