1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00

Merge pull request #188 from cadenji/update-code

Update the code in 01-05
This commit is contained in:
Gary Wang
2021-10-06 18:00:03 +08:00
committed by GitHub

View File

@@ -323,7 +323,7 @@ public:
unsigned int ID; unsigned int ID;
// 构造器读取并构建着色器 // 构造器读取并构建着色器
Shader(const GLchar* vertexPath, const GLchar* fragmentPath); Shader(const char* vertexPath, const char* fragmentPath);
// 使用/激活程序 // 使用/激活程序
void use(); void use();
// uniform工具函数 // uniform工具函数