I'm trying to debug my opengl program. and trying to use the error logging function. glDebugMessageCallback. However the only examples i can find use "typedef void (APIENTRY *DEBUGPROC)" or void APIENTRY glDebugOutput(...). and i know APIENTRY is a windows WINAPI based compiler flag, soo, how do i write a function that will work on linux using g++ compiler?... is it even possible? if i try to it without that i get..
error: invalid conversion from ‘void* ()(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar, void*)’ {aka ‘void* ()(unsigned int, unsigned int, unsigned int, unsigned int, int, const char, void*)’} to ‘GLDEBUGPROC’ {aka ‘void ()(unsigned int, unsigned int, unsigned int, unsigned int, int, const char, const void*)’} [-fpermissive]
#define APIENTRY GLAPIENTRY
. So that should be a non-issue. – BDL