[osg-users] OpenGL core

2012-09-09 Thread Peterakos
Hello.

How do i change opengl profile between core and compatibility?
Which one is the default that the osg uses ?

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


Re: [osg-users] OpenGL core

2012-09-09 Thread Paul Martz

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 intglContextFlags;
unsigned intglContextProfileMask;

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