pixpark / gpupixel

Real-time image and video processing library similar to GPUImage, with built-in beauty filters, achieving commercial-grade beauty effects. Written in C++11 and based on OpenGL/ES.

Home Page:https://gpupixel.pixpark.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

glad问题

Hyliuz opened this issue · comments

commented

1.首先修改examples/app.cmake
ADD_EXECUTABLE(${PROJECT_NAME} SHARED ${SOURCE_FILES}) ADD_DEFINITIONS(-DMYMATH_EXPORT_LIBRARY)
2.编译出一个dll
3.使用python 调用导出的main 函数,发现gl_program.cc 中 _initWithShaderString 方法CHECK_GL(_program = glCreateProgram()); 报错

有没有这样用过的大佬,求指点,纯小白

commented

不要意思,这段代码我给删了 - -!!!!
if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) { std::cout << "Failed to initialize GLAD" << std::endl; return -1; }