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
70
build.zig
70
build.zig
|
|
@ -25,41 +25,41 @@ pub fn build(b: *Builder) void {
|
|||
.path = "examples/core/basic_window.zig",
|
||||
.desc = "Creates a basic window with text",
|
||||
},
|
||||
.{
|
||||
.name = "input_keys",
|
||||
.path = "examples/core/input_keys.zig",
|
||||
.desc = "Simple keyboard input",
|
||||
},
|
||||
.{
|
||||
.name = "input_mouse",
|
||||
.path = "examples/core/input_mouse.zig",
|
||||
.desc = "Simple mouse input",
|
||||
},
|
||||
.{
|
||||
.name = "input_mouse_wheel",
|
||||
.path = "examples/core/input_mouse_wheel.zig",
|
||||
.desc = "Mouse wheel input",
|
||||
},
|
||||
.{
|
||||
.name = "input_multitouch",
|
||||
.path = "examples/core/input_multitouch.zig",
|
||||
.desc = "Multitouch input",
|
||||
},
|
||||
.{
|
||||
.name = "2d_camera",
|
||||
.path = "examples/core/2d_camera.zig",
|
||||
.desc = "Shows the functionality of a 2D camera",
|
||||
},
|
||||
.{
|
||||
.name = "models_loading",
|
||||
.path = "examples/models/models_loading.zig",
|
||||
.desc = "Loads a model and renders it",
|
||||
},
|
||||
.{
|
||||
.name = "shaders_basic_lighting",
|
||||
.path = "examples/shaders/shaders_basic_lighting.zig",
|
||||
.desc = "Loads a model and renders it",
|
||||
},
|
||||
// .{
|
||||
// .name = "input_keys",
|
||||
// .path = "examples/core/input_keys.zig",
|
||||
// .desc = "Simple keyboard input",
|
||||
// },
|
||||
// .{
|
||||
// .name = "input_mouse",
|
||||
// .path = "examples/core/input_mouse.zig",
|
||||
// .desc = "Simple mouse input",
|
||||
// },
|
||||
// .{
|
||||
// .name = "input_mouse_wheel",
|
||||
// .path = "examples/core/input_mouse_wheel.zig",
|
||||
// .desc = "Mouse wheel input",
|
||||
// },
|
||||
// .{
|
||||
// .name = "input_multitouch",
|
||||
// .path = "examples/core/input_multitouch.zig",
|
||||
// .desc = "Multitouch input",
|
||||
// },
|
||||
// .{
|
||||
// .name = "2d_camera",
|
||||
// .path = "examples/core/2d_camera.zig",
|
||||
// .desc = "Shows the functionality of a 2D camera",
|
||||
// },
|
||||
// .{
|
||||
// .name = "models_loading",
|
||||
// .path = "examples/models/models_loading.zig",
|
||||
// .desc = "Loads a model and renders it",
|
||||
// },
|
||||
// .{
|
||||
// .name = "shaders_basic_lighting",
|
||||
// .path = "examples/shaders/shaders_basic_lighting.zig",
|
||||
// .desc = "Loads a model and renders it",
|
||||
// },
|
||||
};
|
||||
|
||||
const examples_step = b.step("examples", "Builds all the examples");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue