From 4e5f45f47fa3568f6b081d56f9e7119367fc775c Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Tue, 5 Oct 2010 06:58:23 +0200 Subject: Added OpenGL header wrapper. --- gl.h | 6 ++++++ pointsprite.cpp | 2 +- shader.h | 2 +- texture.cpp | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 gl.h diff --git a/gl.h b/gl.h new file mode 100644 index 0000000..87d321b --- /dev/null +++ b/gl.h @@ -0,0 +1,6 @@ +#ifndef GL_H +#define GL_H + +#include + +#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 +#include "gl.h" PointSprite::PointSprite(float _size, const Texture& _texture) : texture(_texture) { size = _size; diff --git a/shader.h b/shader.h index 9048fe6..6881be0 100644 --- a/shader.h +++ b/shader.h @@ -4,7 +4,7 @@ #include #define GL_GLEXT_PROTOTYPES -#include +#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 #include #include "texture.h" +#include "gl.h" void Texture::bind() const { glBindTexture(GL_TEXTURE_2D, texture); -- cgit v1.2.3