+ | Multiple sphere sent to GPU working

This commit is contained in:
TheRedShip
2024-12-24 01:44:53 +01:00
parent 7b56daf149
commit 216e9a684a
10 changed files with 166 additions and 62 deletions

View File

@ -21,7 +21,6 @@ class Shader
Shader(std::string vertexPath, std::string fragmentPath, std::string computePath);
~Shader(void);
// void compile(const char *vertexSource, const char *fragmentSource);
void attach(void);
void setupVertexBuffer(const Vertex* vertices, size_t size);
void drawTriangles(size_t size);
@ -29,7 +28,7 @@ class Shader
// void setBool(const std::string &name, bool value) const;
// void setInt(const std::string &name, int value) const;
void set_int(const std::string &name, int value) const;
// void setFloat(const std::string &name, float value) const;
void set_vec2(const std::string &name, const glm::vec2 &value) const;
void set_vec3(const std::string &name, const glm::vec3 &value) const;