mirror of
https://github.com/mouse0w0/lwjglbook-CN-Translation.git
synced 2025-08-22 20:25:29 +08:00
Update 04-07 and 09 chapters
This commit is contained in:
@@ -236,6 +236,7 @@ textCoordsBuffer = MemoryUtil.memAllocFloat(textCoords.length);
|
||||
textCoordsBuffer.put(textCoords).flip();
|
||||
glBindBuffer(GL_ARRAY_BUFFER, vboId);
|
||||
glBufferData(GL_ARRAY_BUFFER, textCoordsBuffer, GL_STATIC_DRAW);
|
||||
glEnableVertexAttribArray(1);
|
||||
glVertexAttribPointer(1, 2, GL_FLOAT, false, 0, 0);
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user