mirror of
https://github.com/Not-Nik/raylib-zig.git
synced 2025-09-09 12:07:27 +00:00
Fixes examples that had unused params
This commit is contained in:
parent
ab5431403c
commit
73a76bf849
@ -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));
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user