mirror of
https://github.com/mouse0w0/lwjglbook-CN-Translation.git
synced 2025-08-23 04:35:29 +08:00
update chapter 04 and 05
This commit is contained in:
@@ -132,7 +132,7 @@ public void init() throws Exception {
|
||||
|
||||

|
||||
|
||||
最后,我们需要更多的内存来储存重复的数据,这就是索引缓冲区(`Index Buffer`)大显身手的时候。为了绘制四边形,我们只需要以这样的方式指定每个顶点:V1, V2, V3, V4。每个顶点在数组中都有一个位置。V1在位置0上,V2在位置1上,等等:
|
||||
最后,我们需要更多的内存来储存重复的数据,这就是索引缓冲区(Index Buffer)大显身手的时候。为了绘制四边形,我们只需要以这样的方式指定每个顶点:V1, V2, V3, V4。每个顶点在数组中都有一个位置。V1在位置0上,V2在位置1上,等等:
|
||||
|
||||
| V1 | V2 | V3 | V4 |
|
||||
| --- | --- | --- | --- |
|
||||
|
Reference in New Issue
Block a user