mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Shader reloading working
This commit is contained in:
@ -3,10 +3,10 @@
|
||||
/* ::: :::::::: */
|
||||
/* ShaderProgram.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: TheRed <TheRed@students.42.fr> +#+ +:+ +#+ */
|
||||
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/12 22:22:17 by TheRed #+# #+# */
|
||||
/* Updated: 2025/02/12 22:22:17 by TheRed ### ########.fr */
|
||||
/* Updated: 2025/02/13 19:10:15 by ycontre ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -22,6 +22,8 @@ class ShaderProgram
|
||||
~ShaderProgram(void);
|
||||
|
||||
void attachShader(Shader *shader);
|
||||
void clearShaders();
|
||||
|
||||
void link(void);
|
||||
|
||||
void use(void) const;
|
||||
@ -34,8 +36,9 @@ class ShaderProgram
|
||||
void set_int(const std::string &name, int value) const;
|
||||
void set_float(const std::string &name, float value) const;
|
||||
void set_vec2(const std::string &name, const glm::vec2 &value) const;
|
||||
|
||||
|
||||
|
||||
void set_textures(std::map<std::string, std::vector<GLuint>> texture_ids);
|
||||
|
||||
GLuint getProgram(void) const;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user