diff options
-rw-r--r-- | gl.h | 6 | ||||
-rw-r--r-- | pointsprite.cpp | 2 | ||||
-rw-r--r-- | shader.h | 2 | ||||
-rw-r--r-- | texture.cpp | 2 |
4 files changed, 9 insertions, 3 deletions
@@ -0,0 +1,6 @@ +#ifndef GL_H +#define GL_H + +#include <SFML/Window/OpenGL.hpp> + +#endif diff --git a/pointsprite.cpp b/pointsprite.cpp index 314fc15..0b29f78 100644 --- a/pointsprite.cpp +++ b/pointsprite.cpp @@ -1,6 +1,6 @@ #include "pointsprite.h" -#include <SFML/Window/OpenGL.hpp> +#include "gl.h" PointSprite::PointSprite(float _size, const Texture& _texture) : texture(_texture) { size = _size; @@ -4,7 +4,7 @@ #include <string> #define GL_GLEXT_PROTOTYPES -#include <SFML/Window/OpenGL.hpp> +#include "gl.h" class GLBaseShader { friend class GLShaderProgram; diff --git a/texture.cpp b/texture.cpp index 52ed861..4c9cb6d 100644 --- a/texture.cpp +++ b/texture.cpp @@ -1,6 +1,6 @@ -#include <SFML/Window/OpenGL.hpp> #include <stdexcept> #include "texture.h" +#include "gl.h" void Texture::bind() const { glBindTexture(GL_TEXTURE_2D, texture); |