mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 08:50:15 +00:00
Make tests and examples use glad
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
//========================================================================
|
||||
//! [code]
|
||||
|
||||
#include <glad/glad.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
@@ -57,6 +58,7 @@ int main(void)
|
||||
}
|
||||
|
||||
glfwMakeContextCurrent(window);
|
||||
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
|
||||
glfwSwapInterval(1);
|
||||
|
||||
glfwSetKeyCallback(window, key_callback);
|
||||
|
||||
Reference in New Issue
Block a user