Skip to content

Commit

Permalink
API revisions
Browse files Browse the repository at this point in the history
- Support flat vanilla API aswell as encapulated, objecty API
- Fix some incorrect types
- More error handling
- Add some missing bindings (closes #1, closes #3, closes #4)
  • Loading branch information
hazeycode committed Nov 23, 2024
1 parent ce756fa commit 3939e07
Show file tree
Hide file tree
Showing 2 changed files with 434 additions and 424 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ pub fn main() !void {
try glfw.init();
defer glfw.terminate();
const window = try glfw.createWindow(600, 600, "zig-gamedev: minimal_glfw_gl", null);
defer glfw.destroyWindow(window);
// or, using the equivilent, encapsulated, "objecty" API:
const window = try glfw.Window.create(600, 600, "zig-gamedev: minimal_glfw_gl", null);
defer window.destroy();
Expand Down
Loading

0 comments on commit 3939e07

Please sign in to comment.