mirror of
https://github.com/raylib-zig/raylib-zig.git
synced 2025-12-06 06:13:08 +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,
|
boneWeights: [*c]f32,
|
||||||
boneMatrices: [*c]Matrix,
|
boneMatrices: [*c]Matrix,
|
||||||
boneCount: c_int,
|
boneCount: c_int,
|
||||||
|
vaoId: c_int,
|
||||||
|
vboId: [*c]c_int,
|
||||||
|
|
||||||
/// Draw a 3d mesh with material and transform
|
/// Draw a 3d mesh with material and transform
|
||||||
pub fn draw(self: Mesh, material: Material, transform: Matrix) void {
|
pub fn draw(self: Mesh, material: Material, transform: Matrix) void {
|
||||||
|
|||||||
@ -1381,6 +1381,8 @@ pub const Mesh = extern struct {
|
|||||||
boneWeights: [*c]f32,
|
boneWeights: [*c]f32,
|
||||||
boneMatrices: [*c]Matrix,
|
boneMatrices: [*c]Matrix,
|
||||||
boneCount: c_int,
|
boneCount: c_int,
|
||||||
|
vaoId: c_int,
|
||||||
|
vboId: [*c]c_int,
|
||||||
|
|
||||||
/// Draw a 3d mesh with material and transform
|
/// Draw a 3d mesh with material and transform
|
||||||
pub fn draw(self: Mesh, material: Material, transform: Matrix) void {
|
pub fn draw(self: Mesh, material: Material, transform: Matrix) void {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user