TN-mo
TN-mo
这真的不是黑暗料理么?有勇者试过了么?
> I recommend you have a dedicated `.c` file which includes glad with `GLAD_GL_IMPLEMENTION`, instead of trying to do it in a header file which is included from multiple locations....
well... maybe my idea of including glad in multiple files is wrong...
**1. create a dedicated `.c` file** this file is to implement the functions of glad. ```c++ // glad_init.cpp #define GLAD_GL_IMPLEMENTATION #include "glad/gl.h" ``` **2. include in other files** declaration only...