mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 00:59:48 +00:00
Make tests and examples use glad
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
//
|
||||
//========================================================================
|
||||
|
||||
#include <glad/glad.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -105,6 +106,7 @@ int main(int argc, char** argv)
|
||||
glfwSetKeyCallback(windows[i], key_callback);
|
||||
|
||||
glfwMakeContextCurrent(windows[i]);
|
||||
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
|
||||
glClearColor(colors[i].r, colors[i].g, colors[i].b, 1.f);
|
||||
|
||||
glfwGetWindowFrameSize(windows[i], &left, &top, &right, &bottom);
|
||||
|
||||
Reference in New Issue
Block a user