diff --git a/doc/opengl_primitives.png b/doc/opengl_primitives.png new file mode 100644 index 0000000000000000000000000000000000000000..1121812ad648f4cff422bffb0e2592d21b17406b Binary files /dev/null and b/doc/opengl_primitives.png differ diff --git a/idl/gepetto/viewer/graphical-interface.idl b/idl/gepetto/viewer/graphical-interface.idl index 41d2b42065e2a3740067ae790a457aa9f23e2aa9..420c1df141f9d9d7bce36113ec9fa1c64bac49c6 100644 --- a/idl/gepetto/viewer/graphical-interface.idl +++ b/idl/gepetto/viewer/graphical-interface.idl @@ -189,8 +189,10 @@ typedef sequence<Position> PositionSeq; /// \param input lineName : name of the line. /// \param input pos : waypoints of the curve. boolean setCurvePoints(in string curveName, in PositionSeq pos) raises (Error); - + /// \param mode The list of possible GL modes is provided in + /// WindowsManager::setCurveMode. + /// From the GL modes, remove "GL_" and put it lower case. boolean setCurveMode (in string curveName, in string mode) raises (Error); boolean setCurvePointsSubset (in string curveName, in long first, in long count) raises (Error); diff --git a/include/gepetto/viewer/corba/windows-manager.hh b/include/gepetto/viewer/corba/windows-manager.hh index 59898fc83d30e5f2841cb864af410f1a0c0e4644..424e014c2132755ccd388caf99f65622400420dc 100644 --- a/include/gepetto/viewer/corba/windows-manager.hh +++ b/include/gepetto/viewer/corba/windows-manager.hh @@ -197,8 +197,7 @@ namespace graphics { virtual bool setCurvePoints(const std::string& curveName, const Vec3ArrayPtr_t& pos); - /// See http://svn.openscenegraph.org/osg/OpenSceneGraph-Data/trunk/Images/primitives.gif for - /// possible values + /// \image html opengl_primitives.png virtual bool setCurveMode (const std::string& curveName, const GLenum mode); virtual bool setCurvePointsSubset (const std::string& curveName, const int first, const std::size_t count); virtual bool setCurveLineWidth (const std::string& curveName, const float& width);