Hi Robert, I would like to use some of the OpenGL 4.x features with the compatibility profile. To do that, do i need to use the setGLExtensionFuncPtr method to get access to the GL funtions i wish to use? (E.g. glGenVertexArrays )
Thanks, Roger robertosfield wrote: > Hi Roger, > > Are you wanting to just use some OpenGL 4.x with the compatibility > profile or do you want to core profile and avoid all the fuxed > function pipeline? > > The OSG itself defines missing parts of various GL extensions that > aren't available in gl.h headers, including handling of MS's OpenGL > anceint headers so you can use advanced GL features without needing to > modify the systems gl.h. Also at runtime the advanced > features/extensions are check for dynamically and switch on/off as > required. This means that OSG users shouldn't ever have to touch core > gl.h headers. > > Robert. > > > On 27 June 2013 09:08, Roger Floydman <> wrote: > > > Hi, > > > > I'd heard lots of good things about OpenSceneGraph so decided to give it a > > try. On the 'features' page it says "OpenGL 1.0 through to OpenGL 4.2, and > > OpenGL ES 1.1 and 2.0 are supported" which is good as i wanted to use > > 'modern GL techniques' > > > > I decided to build from source as i wanted to integrate with Qt and it > > seems there's been some work related to this in the osgQt module which i > > thought would be good to have. > > > > The problems started when i wanted to use a newer GL version. In CMake the > > option was to used GL3 so i selected that and deselected all the other GL > > options. When trying to build OSG it complained that gl3.h couldn't be > > found. So i went on a hunt for that and found the file no longer exists. It > > has been replaced by glcorearb.h. > > > > I made a work around to get passed that error but creating my own gl3.h > > file and including the glcorearb.h file & defining GLCOREARB_PROTOTYPES 1 > > > > Later in the build though i come across another error as GL/gl.h is > > included via osgQt/GraphicsWindowQt and this file cannot be mixed with > > glcorearb.h > > > > Am i missing something here or is it a real pain to get GL3+ working with > > OSG? How does OSG support OpenGL 4.2 (as mentioned on the website) if it > > isn't in sync with the glcorearb.h file and is still looking for gl3.h? > > > > Any help much appreciated. > > > > Thanks, > > > > Roger > > > > ------------------ > > Read this topic online here: > > http://forum.openscenegraph.org/viewtopic.php?p=54943#54943 > > > > > > > > > > > > _______________________________________________ > > osg-users mailing list > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ------------------ > Post generated by Mail2Forum ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=55697#55697 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org