couch/core/Shader.h
2021-01-17 18:03:09 -06:00

27 lines
548 B
C++

#ifndef SHADER_H
#define SHADER_H
#include <glm/gtc/type_ptr.hpp>
#include "types.h"
#include "Material.h"
class Shader {
public:
Id id;
Shader(const char *vertexCode, const char *fragmentCode);
void Use();
void UpdateView(Matrix view);
void UpdateModel(Matrix model);
void UpdateProjection(Matrix projection);
void UpdateColor(bool usesColor);
void UpdateColor(bool usesColor, Color color);
void UpdateTex(bool usesTex);
void UpdateTex(bool usesTex, Texture tex);
virtual Name GetName() const;
};
#endif /* SHADER_H */