On 9/9/2012 4:23 AM, Peterakos wrote:
How do i change opengl profile between core and compatibility?
Which one is the default that the osg uses ?

In GraphicsContext::Traits, these fields are available for you to set:

// settings used in set up of graphics context, only presently used by GL3 build of OSG.
            std::string     glContextVersion;
            unsigned int    glContextFlags;
            unsigned int    glContextProfileMask;

The glContextProfileMask value defaults to zero and is passed directly to wglCreateContextAttribsARB(), see GraphicsContextWin32.cpp lines 1769-1792 in the r13138 source.

You might also take a look at the osgsimplegl3 example. Note there's a documentation comment block at the bottom of the source file that might be informative.
   -Paul


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to