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

Fix some format errors

This commit is contained in:
Meow J
2015-07-10 19:20:40 +08:00
parent 0a9734252d
commit 4fd2931cc1

View File

@@ -2,7 +2,7 @@
# Hello Window
我们看看GLFW是否能够运行。首先创建一个.cpp文件在新创建的文件的顶部包含下面的头文件。注意我们定义了GLEW_STATIC这是因为我们将使用静态GLEW库。
我们看看GLFW是否能够运行。首先创建一个.cpp文件在新创建的文件的顶部包含下面的头文件。注意我们定义了`GLEW_STATIC`这是因为我们将使用静态GLEW库。
```c++
// GLEW
@@ -11,6 +11,7 @@
// GLFW
#include <GLFW/glfw3.h>
```
<div style="border:solid #E1B3B3;border-radius:10px;background-color:#FFD2D2;margin:10px 10px 10px 0px;padding:10px">
必须在GLFW之前引入GLEW。GLEW的头文件已经包含了OpenGL的头文件`GL/gl.h`所以要在其他头文件之前引入GLEW因为它们需要有OpenGL才能起作用。
</div>