Initial commit
This commit is contained in:
parent
0889e4de0d
commit
10bc916711
456 changed files with 119668 additions and 0 deletions
22
src/objects/Shader.hpp
Normal file
22
src/objects/Shader.hpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#define SHADER_DIR "assets/shaders/"
|
||||
|
||||
class Shader
|
||||
{
|
||||
public:
|
||||
static void LoadShaderSource(const char* filepath, char** buffer);
|
||||
|
||||
public:
|
||||
Shader(const char* vertShader, const char* fragShader);
|
||||
~Shader();
|
||||
|
||||
void Use();
|
||||
|
||||
void SetUniformInt(const char* uniform, int value);
|
||||
void SetUniformFloat(const char* uniform, float value);
|
||||
void SetUniformMat4(const char* uniform, const float* ptrToMatrix);
|
||||
|
||||
private:
|
||||
unsigned int program;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue