Hi all

  I work on an editor using osgIntrospection and i have a trouble with osg::StateAttribute::GLMode.
 
  I don't understant why the osg::StateAttribute::GLMode is not an enum with all GL_* flag that can be past to glEnable/glDisable.

  This method is restrictive but a restriction is already do with the enum osg::StateAttribute::Type, so why not do an enum for non-texture  GL_* flags (GL_LIGHTING, ...) and another for the Texture flag (GL_TEXTURE_1D, ... ).

With this enum, the osg::StateSet::getTextureMode(unsigned int unit, StateAttibute::GLMode mode) don't have to test the validity of the mode parameter,

Thanks,
ledocc
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to