This commit is contained in:
2026-02-11 17:50:12 +08:00
parent 1bcfb49b7a
commit 26e00f9fea
6 changed files with 202 additions and 51 deletions

View File

@@ -41,7 +41,7 @@ public:
bool addShader(std::unique_ptr<LOpenGLShader> shader);
void removeShader(GLuint id);
void Create();
bool Link() const;
bool Link();
void Use() const;
bool Linked() const { return linked_; }
@@ -55,7 +55,7 @@ public:
private:
std::list<std::unique_ptr<LOpenGLShader>> shaderList_;
GLuint programId_;
bool linked_;
bool created_;
GLuint programId_ = 0;
bool linked_ = false;
bool created_ = false;
};