Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
像这样的东西不会编译,因为GLenum并且GLint没有在命名空间中声明gl:
GLenum
GLint
gl
#include <glload/gl_3_3.hpp> #include <glload/gll.hpp> void foo(gl::GLenum, gl::GLint);
我如何使用GLenumGL GLintLoad?
从这个链接看来你只需要做GLuint而不是gl::GLuint. 我会假设这也是这种GLenum情况GLint。
GLuint
gl::GLuint