include guard
This commit is contained in:
parent
38483b4b36
commit
4591ad623e
3 changed files with 16 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
#ifndef SHADER_HPP
|
||||||
|
#define SHADER_HPP
|
||||||
|
|
||||||
|
#define SHADER_HPP
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
@ -24,3 +28,5 @@ class FragmentShader : public Shader {
|
||||||
public:
|
public:
|
||||||
FragmentShader();
|
FragmentShader();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif // SHADER_HPP
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef SHADERSYSTEM_HPP
|
||||||
|
#define SHADERSYSTEM_HPP
|
||||||
|
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
#include <linmath.h>
|
#include <linmath.h>
|
||||||
|
|
||||||
|
|
@ -14,3 +17,5 @@ public:
|
||||||
int Draw(int width, int height, float time);
|
int Draw(int width, int height, float time);
|
||||||
GLuint *CreateBuffer();
|
GLuint *CreateBuffer();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif // SHADERSYSTEM_HPP
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef WINDOWSYSTEM_HPP
|
||||||
|
#define WINDOWSYSTEM_HPP
|
||||||
|
|
||||||
#define GLFW_INCLUDE_NONE
|
#define GLFW_INCLUDE_NONE
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#include "shadersystem.hpp"
|
#include "shadersystem.hpp"
|
||||||
|
|
@ -10,3 +13,5 @@ public:
|
||||||
WindowSystem(GLFWwindow *window, class ShaderSystem shaderSystem);
|
WindowSystem(GLFWwindow *window, class ShaderSystem shaderSystem);
|
||||||
int Loop();
|
int Loop();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif // WINDOWSYSTEM_HPP
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue