Initialise repo

This commit is contained in:
2016-06-03 15:07:40 +10:00
commit 04e9f7bf85
300 changed files with 97160 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef DENGINE_COMMON_H
#define DENGINE_COMMON_H
#include <cstdint>
typedef uint8_t u8;
typedef uint32_t u32;
typedef int32_t i32;
typedef i32 b32;
#define TRUE 1
#define FALSE 0
#define GLOBAL_VAR static
#define INTERNAL static
#define LOCAL_PERSIST static
#endif
+8
View File
@@ -0,0 +1,8 @@
#ifndef DENGINE_OPENGL_H
#define DENGINE_OPENGL_H
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#endif
+23
View File
@@ -0,0 +1,23 @@
#ifndef DENGINE_SHADER_H
#define DENGINE_SHADER_H
#include <Dengine/Common.h>
#include <Dengine/OpenGL.h>
#include <string>
namespace Dengine
{
class Shader
{
public:
GLuint mProgram;
Shader(std::string vertexPath, std::string fragmentPath);
~Shader();
void use();
};
}
#endif