Error in Opengl opencl interoperation-Collection of common programming errors
I get the following 4 errors after compiling.
error C2065: 'CL_GL_CONTEXT_KHR' : undeclared identifier
error C2065: 'CL_WGL_HDC_KHR' : undeclared identifier
IntelliSense: identifier "CL_GL_CONTEXT_KHR" is undefined
IntelliSense: identifier "CL_WGL_HDC_KHR" is undefined
I use following headers:
#include
//#include
#include
#include
#ifdef MAC
#include
#include
#include
#define GL_SHARING_EXTENSION "cl_APPLE_gl_sharing"
#else
#include
#include
#include