- fix: GLFW project template.
This commit is contained in:
parent
0e1332dd5e
commit
70edbf7054
1
NEWS.md
1
NEWS.md
|
@ -25,6 +25,7 @@ Red Panda C++ Version 2.23
|
|||
- enhancement: add "OI Wiki" and "turtle graphics tutorial" in help menu for zh_CN locale.
|
||||
- fix: Replace panel should be hidden after finding occurrencies.
|
||||
- enhancement: Show code completion suggestion after "typedef" and "const".
|
||||
- fix: GLFW project template.
|
||||
|
||||
Red Panda C++ Version 2.22
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ int main()
|
|||
glViewport(0, 0, WIDTH, HEIGHT);
|
||||
|
||||
|
||||
Shader ourShader("shader.vs", "shader.frag");
|
||||
Shader ourShader("shader.vs", "shader.fs");
|
||||
|
||||
GLfloat vertices[] = {
|
||||
// Positions // Colors
|
||||
|
|
|
@ -40,7 +40,7 @@ int main()
|
|||
|
||||
|
||||
// 读取shader文件,并编译,见shader.h代码
|
||||
Shader ourShader("shader.vs", "shader.frag");
|
||||
Shader ourShader("shader.vs", "shader.fs");
|
||||
|
||||
|
||||
// 一维数组,每六个代表一个顶点属性,前三个代表位置属性,后三个代表颜色属性
|
||||
|
|
|
@ -18,8 +18,8 @@ Cpp=GLFW_shader.h.txt
|
|||
Cpp[zh_CN]=GLFW_shader_zh_CN.h
|
||||
|
||||
[Unit2]
|
||||
CppName=shader.frag
|
||||
Cpp=GLFW_shader.frag.txt
|
||||
CppName=shader.fs
|
||||
Cpp=GLFW_shader.fs.txt
|
||||
|
||||
|
||||
[Unit3]
|
||||
|
|
Loading…
Reference in New Issue