Fixes examples that had unused params

This commit is contained in:
Maurizio Crocci 2021-07-10 03:26:08 +01:00
parent ab5431403c
commit 73a76bf849
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ pub fn main() anyerror!void
var spacing: i32 = 0; var spacing: i32 = 0;
for (buildings) |building, i| for (buildings) |_, i|
{ {
buildings[i].width = @intToFloat(f32, GetRandomValue(50, 200)); buildings[i].width = @intToFloat(f32, GetRandomValue(50, 200));
buildings[i].height = @intToFloat(f32, GetRandomValue(100, 800)); buildings[i].height = @intToFloat(f32, GetRandomValue(100, 800));

View File

@ -29,7 +29,7 @@ pub fn main() anyerror!void
var texture = LoadTexture("resources/models/castle_diffuse.png"); // Load model texture var texture = LoadTexture("resources/models/castle_diffuse.png"); // Load model texture
model.materials[0].maps[@enumToInt(MAP_DIFFUSE)].texture = texture; // Set map diffuse texture model.materials[0].maps[@enumToInt(MAP_DIFFUSE)].texture = texture; // Set map diffuse texture
var position = Vector3 { .x = 0.0, .y = 0.0, .z = 0.0 }; // Set model position //var position = Vector3 { .x = 0.0, .y = 0.0, .z = 0.0 }; // Set model position
var bounds = MeshBoundingBox(model.meshes[0]); // Set model bounds var bounds = MeshBoundingBox(model.meshes[0]); // Set model bounds