On 12 March 2013 13:24, Lv Qing <[email protected]> wrote:
> when I push "w",osg cyclePolygonMode among line,point,fill.
>
> My question is How can I change the color of these osg::PolygonMode?

OpenGL doesn't change colour depending upong glPolygonMode so the
OSG's osg::PolygonMode can't do anything different either.

If you want different colours then you'll need to use a seperate
osg::Material (maps to glMaterial) to create a different colour, or
change the osg::Geometry's colour or textures.  Please have a look at
OpenGL documentation for details of how glMaterial (osg::Material) and
glColor/glColorArray (osg::Geometry) work together.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to