[osg-users] glActiveTextureARB in OSG
grosser.martin at gmx.de
Thu Mar 12 03:36:34 PDT 2009
I'd like to use a OSG class. But I don't know which class I can use.
There are no way to change the active texture in osg or can I reset the
opengl state machine? After the rendering ( frame() ) the active texture
is not TEXTURE0_ARB, but that is what I need.
Am Mittwoch, den 11.03.2009, 09:08 +0000 schrieb Robert Osfield:
> Hi Martin,
> The OSG queries OpenGL extensions at runtime, so even if the header
> doesn't contain the function then it'll be able to pick it up from the
> As a general note, I'd recommend avoiding calling OpenGL yourself, and
> port your code across to using the OSG classes to do the OpenGL work,
> this will avoid issues with clashes of state managment and allow the
> OSG to do state sorting + lazy state updating, and it'll do the
> extension setup for you.
> On Wed, Mar 11, 2009 at 7:44 AM, Großer Martin <grosser.martin at gmx.de> wrote:
> > Hello all,
> > I want to use the glActiveTextureARB in my Programm, but it doesn't
> > work. I get the message that the glActiveTextureARB is not declared in
> > this scope. I think the problem is the nvidia driver. It replace the
> > OpenGL headers. But in OSG it works fine, but why?
> > I would like change the active texture to GL_TEXTURE0_ARB. Maybe there
> > are a function in osg?
> > Cheers, Martin
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> osg-users mailing list
> osg-users at lists.openscenegraph.org
More information about the osg-users