1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-22 20:25:28 +08:00

Update 01-01 01-04

This commit is contained in:
Meow J
2017-06-16 23:03:52 +08:00
parent afe2ca1998
commit c58381be2a
3 changed files with 89 additions and 100 deletions

View File

@@ -4,6 +4,14 @@
注意的是,一些比较小的改动将不会出现在这里。
## 01-01 OpenGL
!!! important
**基元类型(Primitive Type)**
使用OpenGL时建议使用OpenGL定义的基元类型。比如使用`float`时我们加上前缀`GL`(因此写作`GLfloat`)。`int``uint``char``bool`等等也类似。OpenGL定义的这些GL基元类型的内存布局是与平台无关的而int等基元类型在不同操作系统上可能有不同的内存布局。使用GL基元类型可以保证你的程序在不同的平台上工作一致。
## 01-02 创建窗口
### 编译和链接GLEW