mirror of
https://github.com/Not-Nik/raylib-zig.git
synced 2025-09-08 19:47:28 +00:00
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:
parent
94570c4b60
commit
606d9bb9ba
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user