HI Uma,

On 24 September 2016 at 08:13, Uma Devi Selvaraj
<umaselvam1...@gmail.com> wrote:
>   I am new to OSG. Can somebody tell me how to view wireframe of 3d model 
> using c++ code. I am able to view wireframe , points,texture etc using 
> osgviewer(with help of 'w' key ) only when I open the 3d model using the  
> "osgviewer <3dmodel_name>" in cmd prompt.

The osg::PolygonMode state attribute wraps up the glPolygonMode
function in OpenGL, so have a look for OpenGL docs on how it works.
Also look at the src/osgGA/StateManipulator.cpp file to see how it
toggles on/off the wireframe mode.

Robert
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to