Compare commits

..

5 Commits

Author SHA1 Message Date
Rekai Nyangadzayi Musuka 56bdb45491 chore: remove extra branch from switch statement
survived a rebase 😔
2023-03-26 23:02:49 -05:00
Rekai Nyangadzayi Musuka a74cbad16d feat: prefer SDL.h instead of SDL/SDL.h on all supported platforms 2023-03-26 23:00:16 -05:00
Rekai Nyangadzayi Musuka d46a1d901c chore: explicitly link SDL2
TODO: What happens on Windows? macOS?
2023-03-26 23:00:16 -05:00
Rekai Nyangadzayi Musuka b696c24423 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 23:00:16 -05:00
Rekai Nyangadzayi Musuka 15d3b6b2b2 feat: add sdl2-opengl3 backend impl 2023-03-26 23:00:15 -05:00
1 changed files with 1 additions and 2 deletions

View File

@ -9,9 +9,8 @@ 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_opengl3 => @import("backend_glfw_opengl3.zig"),
.sdl2_opengl3 => @import("backend_sdl2_opengl3.zig"),
.glfw_wgpu => @import("backend_glfw_wgpu.zig"),
.sdl2_opengl3 => @import("backend_sdl2_opengl3.zig"),
.win32_dx12 => .{}, // TODO:
.no_backend => .{},
};