Skip to content

Commit

Permalink
4.1 compat profile
Browse files Browse the repository at this point in the history
  • Loading branch information
archibate committed Sep 29, 2021
1 parent 4bbf132 commit c17cf57
Show file tree
Hide file tree
Showing 4 changed files with 9,333 additions and 8,466 deletions.
2 changes: 1 addition & 1 deletion POC/uidesign/glad/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pip install glad
# python -m glad --out-path . --generator c --api gl=2.0
# python -m glad --out-path . --generator c --api gl=4.1
add_library(glad STATIC src/glad.c)
target_include_directories(glad PUBLIC include)
16,855 changes: 8,644 additions & 8,211 deletions POC/uidesign/glad/include/glad/glad.h

Large diffs are not rendered by default.

937 changes: 685 additions & 252 deletions POC/uidesign/glad/src/glad.c

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions POC/uidesign/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1314,8 +1314,9 @@ int main() {
fprintf(stderr, "Failed to initialize GLFW library: %s\n", err);
return -1;
}
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_COMPAT_PROFILE);
window = glfwCreateWindow(800, 600, "Zeno Editor", nullptr, nullptr);
if (!window) {
const char *err = "unknown error"; glfwGetError(&err);
Expand Down

0 comments on commit c17cf57

Please sign in to comment.