Compare commits

..

11 Commits

Author SHA1 Message Date
Rekai Nyangadzayi Musuka 281f95b460 fix: restore import for glfw w/ opengl3 backend
rebase unalived that specific line. Whoops
2023-04-13 21:54:14 -05:00
Rekai Nyangadzayi Musuka 992d7edd40 feat: prefer SDL.h instead of SDL/SDL.h on all supported platforms 2023-04-13 21:54:14 -05:00
Rekai Nyangadzayi Musuka fdbb8e5674 chore: explicitly link SDL2
TODO: What happens on Windows? macOS?
2023-04-13 21:54:14 -05:00
Rekai Nyangadzayi Musuka 1837973686 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-04-13 21:54:14 -05:00
Rekai Nyangadzayi Musuka 83b256aefc feat: add sdl2-opengl3 backend impl 2023-04-13 21:54:14 -05:00
Rekai Nyangadzayi Musuka c52d86525e chore: handle all cases of enum 2023-04-13 21:54:14 -05:00
Rekai Nyangadzayi Musuka db752a2f7b chore: combine render() and draw() in backend 2023-04-13 21:54:14 -05:00
Rekai Nyangadzayi Musuka 8dae24251b feat: add backend impl for glfw+opengl3 2023-04-13 21:54:14 -05:00
Rekai Nyangadzayi Musuka bbf66aeeca feat: add glfw+opengl3 backend option to build.zig 2023-04-13 21:54:14 -05:00
Rekai Nyangadzayi Musuka 21569fbb36 chore: add necessary imgui files for opengl3 2023-04-13 21:54:14 -05:00
Rekai Nyangadzayi Musuka 666b7201ff chore: update livestream 2023-04-13 21:53:57 -05:00
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ pub fn package(
.optimize = optimize, .optimize = optimize,
}); });
lib.install(); b.installArtifact(lib);
if (target.isWindows()) { if (target.isWindows()) {
lib.defineCMacro("IMGUI_API", "__declspec(dllexport)"); lib.defineCMacro("IMGUI_API", "__declspec(dllexport)");
lib.defineCMacro("IMPLOT_API", "__declspec(dllexport)"); lib.defineCMacro("IMPLOT_API", "__declspec(dllexport)");