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

fix: 修正错误翻译

原文中的dimension指的是视口的“尺寸”,翻译成“维度”并不合适
This commit is contained in:
Fish_Fly_
2024-09-11 23:30:33 +08:00
committed by Gary Wang
parent 051afa2e5a
commit cd0b12cf4a

View File

@@ -76,7 +76,7 @@ if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress))
## 视口
在我们开始渲染之前还有一件重要的事情要做我们必须告诉OpenGL渲染窗口的尺寸大小即视口(Viewport)这样OpenGL才只能知道怎样根据窗口大小显示数据和坐标。我们可以通过调用<fun>glViewport</fun>函数来设置口的**维度**(Dimension)
在我们开始渲染之前还有一件重要的事情要做我们必须告诉OpenGL渲染窗口的尺寸大小即视口(Viewport)这样OpenGL才只能知道怎样根据窗口大小显示数据和坐标。我们可以通过调用<fun>glViewport</fun>函数来设置口的**尺寸**(Dimension)
```c++
glViewport(0, 0, 800, 600);