Porting a project to OpenGL3

Posted by Decapsuleur on Stack Overflow See other posts from Stack Overflow or by Decapsuleur
Published on 2010-06-03T14:15:28Z Indexed on 2010/06/03 14:34 UTC
Read the original article Hit count: 372

Filed under:
|
|
|

Hi everyone,

I'm working on a C++ cross-platform OpenGL application (Windows, Linux and MacOS) and I am wondering if some of you could share some advices on porting a large application to OpenGL 3. The reason I am looking into OpenGL 3 is because I think we could benefit a lot from using the new "Sync objects". Nvidia has supported such an extension since the Geforce 256 days (gl_nv_fences) but there seems to be no equivalent functionality on ATI hardware before OpenGL 3.0+...

Our code makes quite heavy use of glut/freeglut, glu functions, OpenGL 2 extensions and CUDA (on supported hardware). The problem I am now facing is that "gl3.h" and "gl.h" are mutually incompatible (as stated in gl3.h). Do you guys know if there is a GL3 glut equivalent ? Also, looking at the CUDA-toolkit header files, it seems that GL-CUDA interoperability is only available when using older versions of OpenGL... (cuda_gl_interop.h includes gl.h...). Am I missing something ?

Thanks a lot for your help.

© Stack Overflow or respective owner

Related posts about c++

Related posts about opengl