27 lines
441 B
C++
27 lines
441 B
C++
#ifndef SHADER_H
|
|
#define SHADER_H
|
|
|
|
#include <string>
|
|
#include <fstream>
|
|
#include <sstream>
|
|
#include <iostream>
|
|
|
|
#include <glm/gtc/type_ptr.hpp>
|
|
|
|
#include "types.h"
|
|
|
|
class Shader {
|
|
public:
|
|
Id id;
|
|
|
|
Shader(const char *vertexPath, const char *fragmentPath);
|
|
void Use();
|
|
void UpdateView(Matrix view);
|
|
void UpdateModel(Matrix model);
|
|
void UpdateProjection(Matrix projection);
|
|
|
|
virtual Name GetName() const;
|
|
};
|
|
|
|
#endif /* SHADER_H */
|