Skip to content

Commit

Permalink
example: defines GLAD_GL_IMPLEMENTATION in GLFW example (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
makichiis authored Apr 7, 2024
1 parent 658f48e commit 5dd44f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ dist/
/glad-rs/
/rust/
target/
Cargo.lock
Cargo.lock
.vscode/
1 change: 1 addition & 0 deletions example/c/gl_glfw.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <stdlib.h>
#include <stdio.h>

#define GLAD_GL_IMPLEMENTATION // Necessary for headeronly version.
#include <glad/gl.h>

#include <GLFW/glfw3.h>
Expand Down

0 comments on commit 5dd44f1

Please sign in to comment.