fix build and basic_window example
some restructuring due to the recent changes to usingnamespace.
also cleaned up some deprecated stuff from raylib 3.7.
- appended the contents of raylib-wa.zig into raylib-zig.zig
- using raylib functions requires `const rl = @import("raylib");`
(and accesing the identifiers inside rl, like `rl.InitWindow`)
only the basic_window example was updated, and it looks like it crashes
on keyboard inputs.
many thanks to @nektro :)
This commit is contained in:
parent
3f19a5742a
commit
5e275e93df
14 changed files with 237 additions and 166 deletions
|
|
@ -1,4 +1,11 @@
|
|||
usingnamespace @import("raylib-zig.zig");
|
||||
const rl = @import("raylib-zig.zig");
|
||||
|
||||
const Matrix = rl.Matrix;
|
||||
const Quaternion = rl.Quaternion;
|
||||
const Vector2 = rl.Vector2;
|
||||
const Vector3 = rl.Vector3;
|
||||
const float16 = rl.float16;
|
||||
const float3 = rl.float3;
|
||||
|
||||
pub extern fn Clamp(value: f32, min: f32, max: f32) f32;
|
||||
pub extern fn Lerp(start: f32, end: f32, amount: f32) f32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue