rlgl: VertexBuffer has new field + descriptions added
This commit is contained in:
parent
b922049f3b
commit
ccc9ef8662
1 changed files with 8 additions and 7 deletions
|
@ -54,13 +54,14 @@ const (
|
||||||
|
|
||||||
// VertexBuffer - Dynamic vertex buffers (position + texcoords + colors + indices arrays)
|
// VertexBuffer - Dynamic vertex buffers (position + texcoords + colors + indices arrays)
|
||||||
type VertexBuffer struct {
|
type VertexBuffer struct {
|
||||||
ElementCount int32
|
ElementCount int32 // Number of elements in the buffer (QUADS)
|
||||||
Vertices *float32
|
Vertices *float32 // Vertex position (XYZ - 3 components per vertex) (shader-location = 0)
|
||||||
Texcoords *float32
|
Texcoords *float32 // Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)
|
||||||
Colors *uint8
|
Normals *float32 // Vertex normal (XYZ - 3 components per vertex) (shader-location = 2)
|
||||||
Indices *uint32
|
Colors *uint8 // Vertex colors (RGBA - 4 components per vertex) (shader-location = 3)
|
||||||
VaoId uint32
|
Indices *uint32 // Vertex indices (in case vertex data comes indexed) (6 indices per quad)
|
||||||
VboId [4]uint32
|
VaoId uint32 // OpenGL Vertex Array Object id
|
||||||
|
VboId [5]uint32 // OpenGL Vertex Buffer Objects id (5 types of vertex data)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DrawCall - Draw call type
|
// DrawCall - Draw call type
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue