sent from android
This commit is contained in:
24
include/shader.hpp
Normal file
24
include/shader.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef SHADER_HPP
|
||||
#define SHADER_HPP
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
|
||||
// Includes
|
||||
#include "utils.hpp"
|
||||
#include <iostream>
|
||||
#include <SDL3/SDL_opengl.h>
|
||||
#include "geometry.hpp"
|
||||
|
||||
// Shader class
|
||||
class Shader {
|
||||
public:
|
||||
unsigned int ID;
|
||||
Shader(const char* vertexPath, const char* fragmentPath);
|
||||
void use() const;
|
||||
void setBool(const std::string &name, bool value) const;
|
||||
void setInt(const std::string &name, int value) const;
|
||||
void setFloat(const std::string &name, float value) const;
|
||||
void setMat4(const std::string &name, const glm::mat4 &mat) const;
|
||||
~Shader();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user