Compare commits

..

9 Commits

Author SHA1 Message Date
Rekai Nyangadzayi Musuka d3110094f6 feat: prefer SDL.h instead of SDL/SDL.h on all supported platforms 2023-03-26 22:55:58 -05:00
Rekai Nyangadzayi Musuka 42b225924a tmp: nth attempt 2023-03-26 22:10:06 -05:00
Rekai Nyangadzayi Musuka 1dfff5e0b0 tmp: attempt 3 lol 2023-03-26 21:33:41 -05:00
Rekai Nyangadzayi Musuka 3e1017d4fc tmp: remove special-case for win32 2023-03-26 21:08:24 -05:00
Rekai Nyangadzayi Musuka 0b90028b52 chore: move thing 2023-03-26 20:58:24 -05:00
Rekai Nyangadzayi Musuka 70d7c0dc02 Merge branch 'sdl2-opengl3-backend' into fork 2023-03-26 19:52:55 -05:00
Rekai Nyangadzayi Musuka 55efe08bdf chore: explicitly link SDL2
TODO: What happens on Windows? macOS?
2023-03-26 19:38:50 -05:00
Rekai Nyangadzayi Musuka 78922b64ea fix: vcpkg stores SDL.h under SDL2 folder
macOS and Linux seem to not, so in order to get CI working again I
should make use of the preprocessor.

FIXME: I think this makes vcpkg a **hard** requirement which perhaps
isn't ideal if I want ZBA to be as easy to build as possible. I should
try ensuring that building w/out vcpkg works as well
2023-03-26 19:35:02 -05:00
Rekai Nyangadzayi Musuka b051d0c406 feat: add sdl2-opengl3 backend impl 2023-03-26 19:35:02 -05:00
1 changed files with 2 additions and 1 deletions

View File

@ -9,8 +9,9 @@ pub const version = @import("std").SemanticVersion{ .major = 0, .minor = 9, .pat
pub usingnamespace @import("gui.zig");
pub const plot = @import("plot.zig");
pub const backend = switch (@import("zgui_options").backend) {
.glfw_wgpu => @import("backend_glfw_wgpu.zig"),
.glfw_opengl3 => @import("backend_glfw_opengl3.zig"),
.sdl2_opengl3 => @import("backend_sdl2_opengl3.zig"),
.glfw_wgpu => @import("backend_glfw_wgpu.zig"),
.win32_dx12 => .{}, // TODO:
.no_backend => .{},
};