Add files via upload

This commit is contained in:
MihailRis 2021-04-25 16:08:48 +03:00 • committed by GitHub
commit e1cdcf01e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 2866 additions and 0 deletions

20
src/graphics/Shader.h Normal file
View file

@ -0,0 +1,20 @@
#ifndef GRAPHICS_SHADER_H_
#define GRAPHICS_SHADER_H_
#include <string>
#include <glm/glm.hpp>
class Shader {
public:
unsigned int id;
Shader(unsigned int id);
~Shader();
void use();
void uniformMatrix(std::string name, glm::mat4 matrix);
};
extern Shader* load_shader(std::string vertexFile, std::string fragmentFile);
#endif /* GRAPHICS_SHADER_H_ */