feat: use opengl

TODO:
- Texture isn't scaling properly
- I need to reverse the colours in the frag shader
This commit is contained in:
2022-09-22 12:23:16 -03:00
parent 26dba16789
commit 1575f517a9
5 changed files with 9418 additions and 21 deletions

View File

@@ -31,6 +31,9 @@ pub fn build(b: *std.build.Builder) void {
// TOML Library
exe.addPackagePath("toml", "lib/zig-toml/src/toml.zig");
// OpenGL Bindings
exe.addPackagePath("gl", "lib/gl_4v5.zig");
// Zig SDL Bindings: https://github.com/MasterQ32/SDL.zig
const sdk = Sdk.init(b);
sdk.link(exe, .dynamic);