raylib: add missing fields to Mesh struct (#175)

Add missing veoId and vboId fields to the Mesh struct. This fixes
some crashes when meshes are being manipulated on the Zig side, for
example when genMesh* functions are used.
This commit is contained in:
Michał 2024-11-26 20:16:46 +01:00 committed by GitHub
parent 94570c4b60
commit 606d9bb9ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -1381,6 +1381,8 @@ pub const Mesh = extern struct {
boneWeights: [*c]f32,
boneMatrices: [*c]Matrix,
boneCount: c_int,
vaoId: c_int,
vboId: [*c]c_int,
/// Draw a 3d mesh with material and transform
pub fn draw(self: Mesh, material: Material, transform: Matrix) void {

View File

@ -1381,6 +1381,8 @@ pub const Mesh = extern struct {
boneWeights: [*c]f32,
boneMatrices: [*c]Matrix,
boneCount: c_int,
vaoId: c_int,
vboId: [*c]c_int,
/// Draw a 3d mesh with material and transform
pub fn draw(self: Mesh, material: Material, transform: Matrix) void {