1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 12:45:29 +08:00

Anyway, just delete it. Close #46

This commit is contained in:
Meow J
2016-08-22 01:22:18 +08:00
parent 3aee090811
commit e7620cc88e

View File

@@ -335,11 +335,7 @@ public:
## 从文件读取 ## 从文件读取
我们使用C++文件流读取着色器内容,储存到几个`string`对象里译注1 我们使用C++文件流读取着色器内容,储存到几个`string`对象里:
!!! note "译注1"
实际上把着色器代码保存在文件中适合学习OpenGL的时候实际开发中最好把一个着色器直接储存为多个字符串这样具有更高的灵活度。
```c++ ```c++
Shader(const GLchar* vertexPath, const GLchar* fragmentPath) Shader(const GLchar* vertexPath, const GLchar* fragmentPath)