Initialise repo
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef DENGINE_OPENGL_H
|
||||
#define DENGINE_OPENGL_H
|
||||
|
||||
#define GLEW_STATIC
|
||||
#include <GL/glew.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#endif
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user