I tried to composite Optix with an OPENGL + CUDA project. However when I include optix header like this:
Compiler VS2013 said “include\gl\wglew.h(958): error C2371: ‘HGPUNV’ : redefinition; different basic types”
- “optix_gl_interop.h(400) : see declaration of ‘HGPUNV’”.
If I only include optixpp_namespace.h, besides the previous error, it also said things like cudaIpcEventHandle_t or other cuda things were not defined. That’s the reason I added below.