base setup for osx in place

This commit is contained in:
Omar Mohamed Ali Mudhir
2017-01-14 18:30:19 +00:00
commit 13d8e6e563
18 changed files with 1143 additions and 0 deletions

12
engine/shader.hpp Normal file
View File

@@ -0,0 +1,12 @@
#pragma once
class Shader
{
GLuint prog;
public:
bool create(std::string vertex, std::string fragment);
void use();
void u_vec4(std::string name, const glm::vec4& v);
void u_mat4(std::string name, const glm::mat4& m);
void u_int(std::string name, int i);
};