[osg-users] Use OSG with an existing renderer in OpenGL ES

Robert Osfield robert.osfield at gmail.com
Mon Nov 21 02:52:10 PST 2016


On 21 November 2016 at 09:12, Fabien Boco <fabien.boco at gmail.com> wrote:
> This is why I'm looking for an OpenGL ES alternative for glPush/PopAttrib which works fine on the Windows version application.


The alternative to using glPush/glPop on the OSG would be to dirty the
associated modes and attributes that are tracked in osg::State.  In
osg::State there are series of haveApplied*() methods to help with
tell the OSG's state tracking mechanism something has externally
changed.  This requires you to know what modes and attributes will
have been changed by the 3rd party code so it's not an easy
alternative to glPush/glPop.

Personally I find Qt's approach of changing GL state problematic, I
much prefer windowing libraries to just create a graphics context and
leave GL work entirely to dedicated graphics libraries.

Robert.



More information about the osg-users mailing list