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

Update 01-05

This commit is contained in:
Meow J
2017-06-17 02:09:10 +08:00
parent c58381be2a
commit af9fee58c1
2 changed files with 103 additions and 74 deletions

View File

@@ -78,6 +78,10 @@ struct object_name {
};
```
!!! note "译注"
在更新前的教程中一直使用的都是OpenGL的基本类型但由于作者觉得在本教程系列中并没有一个必须使用它们的原因所有的类型都改为了自带类型。但是请仍然记住使用OpenGL的类型的好处是保证了在各平台中每一种类型的大小都是统一的。你也可以使用其它的定宽类型(Fixed-width Type)来实现这一点。
当我们使用一个对象时通常看起来像如下一样把OpenGL上下文看作一个大的结构体
```c++