Compare commits

..

10 Commits

Author SHA1 Message Date
Rekai Nyangadzayi Musuka 5b2b64a9de fix: restore import for glfw w/ opengl3 backend
rebase unalived that specific line. Whoops
2023-03-26 23:04:30 -05:00
Rekai Nyangadzayi Musuka 1c6205769f feat: prefer SDL.h instead of SDL/SDL.h on all supported platforms 2023-03-26 23:03:32 -05:00
Rekai Nyangadzayi Musuka 99d138d5e8 chore: explicitly link SDL2
TODO: What happens on Windows? macOS?
2023-03-26 23:03:32 -05:00
Rekai Nyangadzayi Musuka 5ad078e5d6 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:03:32 -05:00
Rekai Nyangadzayi Musuka 573b2347f6 feat: add sdl2-opengl3 backend impl 2023-03-26 23:03:32 -05:00
Rekai Nyangadzayi Musuka fd91b5ceaa chore: handle all cases of enum 2023-03-26 23:03:32 -05:00
Rekai Nyangadzayi Musuka 45f02a82a8 chore: combine render() and draw() in backend 2023-03-26 23:03:32 -05:00
Rekai Nyangadzayi Musuka 340dfa2bb7 feat: add backend impl for glfw+opengl3 2023-03-26 23:03:32 -05:00
Rekai Nyangadzayi Musuka 8a2becdd79 feat: add glfw+opengl3 backend option to build.zig 2023-03-26 23:03:32 -05:00
Rekai Nyangadzayi Musuka 9f23fbe948 chore: add necessary imgui files for opengl3 2023-03-26 23:03:32 -05:00
1 changed files with 1 additions and 1 deletions

View File

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