Split buffer struct into VAO+VBO+IBO structs

This commit is contained in:
bloeys
2024-04-13 02:59:31 +04:00
parent 524ef068f0
commit 692167ada2
8 changed files with 193 additions and 148 deletions

View File

@ -18,7 +18,7 @@ type Rend3DGL struct {
func (r3d *Rend3DGL) Draw(mesh *meshes.Mesh, trMat *gglm.TrMat, mat *materials.Material) {
if mesh != r3d.BoundMesh {
mesh.Buf.Bind()
mesh.Vao.Bind()
r3d.BoundMesh = mesh
}