diff --git a/examples/common/OpenGLWidget.h b/examples/common/OpenGLWidget.h index c2caadb1..b89705d7 100644 --- a/examples/common/OpenGLWidget.h +++ b/examples/common/OpenGLWidget.h @@ -21,18 +21,11 @@ misrepresented as being the original software. distribution. *******************************************************************************/ -#ifndef __BasicExample_OpenGLWidget_H__ -#define __BasicExample_OpenGLWidget_H__ - -#include "PolyVox/Mesh.h" - -#include +#ifndef __OpenGLWidget_H_A72D4D2F8E__ // Random junk as 'OpenGLWidget seems like it could be a common name. +#define __OpenGLWidget_H_A72D4D2F8E__ #include #include -#include -#include -#include // This is a very basic class for getting an OpenGL example up and running with Qt5. It simply displays // an OpenGL widget and implements an FPS-style camera as well as other very basic functionality. User @@ -97,4 +90,4 @@ private: #include "OpenGLWidget.inl" -#endif //__BasicExample_OpenGLWidget_H__ +#endif //__OpenGLWidget_H_A72D4D2F8E__ diff --git a/examples/common/OpenGLWidget.inl b/examples/common/OpenGLWidget.inl index 2c7f1c78..5edbd3ce 100644 --- a/examples/common/OpenGLWidget.inl +++ b/examples/common/OpenGLWidget.inl @@ -1,12 +1,9 @@ #include "OpenGLWidget.h" #include -#include -#include #include -using namespace PolyVox; -using namespace std; +#include //////////////////////////////////////////////////////////////////////////////// // Protected functions diff --git a/examples/common/PolyVoxExample.h b/examples/common/PolyVoxExample.h index 65a77351..90727d2f 100644 --- a/examples/common/PolyVoxExample.h +++ b/examples/common/PolyVoxExample.h @@ -26,6 +26,13 @@ distribution. #include "OpenGLWidget.h" +#include "PolyVox/Mesh.h" + +#include +#include +#include +#include + // This structure holds all the data required // to render one of our meshes through OpenGL. struct OpenGLMeshData