couch/core/Shader.h

27 lines
441 B
C
Raw Normal View History

2021-01-13 10:42:57 -06:00
#ifndef SHADER_H
#define SHADER_H
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
2021-01-13 13:17:31 -06:00
#include <glm/gtc/type_ptr.hpp>
2021-01-13 10:42:57 -06:00
#include "types.h"
class Shader {
public:
Id id;
Shader(const char *vertexPath, const char *fragmentPath);
void Use();
2021-01-13 13:17:31 -06:00
void UpdateView(Matrix view);
void UpdateModel(Matrix model);
void UpdateProjection(Matrix projection);
2021-01-15 16:15:47 -06:00
virtual Name GetName() const;
2021-01-13 10:42:57 -06:00
};
#endif /* SHADER_H */