From Ruth Lang, "using osg version 2.5.5 and compiling my program under OpenSUSE 11.0
with gcc (version 4.3.1) I got the following error message in include/osgUtil/TriStripVisitor and Tessellator error: type qualifiers ignored on function return type The errors belong all to a INLINE function definition. Find attached my modified version."
This commit is contained in:
@@ -60,15 +60,15 @@ class OSGUTIL_EXPORT Tessellator : public osg::Referenced
|
||||
|
||||
/** Set and get tessellation request boundary only on/off */
|
||||
void setBoundaryOnly (const bool tt) { _boundaryOnly=tt;}
|
||||
inline const bool getBoundaryOnly ( ) { return _boundaryOnly;}
|
||||
inline bool getBoundaryOnly ( ) { return _boundaryOnly;}
|
||||
|
||||
/** Set and get tessellation windong rule */
|
||||
void setWindingType (const WindingType wt) { _wtype=wt;}
|
||||
inline const WindingType getWindingType ( ) { return _wtype;}
|
||||
inline WindingType getWindingType ( ) { return _wtype;}
|
||||
|
||||
/** Set and get tessellation type */
|
||||
void setTessellationType (const TessellationType tt) { _ttype=tt;}
|
||||
inline const TessellationType getTessellationType ( ) { return _ttype;}
|
||||
inline TessellationType getTessellationType ( ) { return _ttype;}
|
||||
|
||||
/** Change the contours lists of the geometry into tessellated primitives (the
|
||||
* list of primitives in the original geometry is stored in the Tessellator for
|
||||
|
||||
@@ -61,7 +61,7 @@ class OSGUTIL_EXPORT TriStripVisitor : public BaseOptimizerVisitor
|
||||
return _cacheSize;
|
||||
}
|
||||
|
||||
inline const unsigned int getCacheSize() const
|
||||
inline unsigned int getCacheSize() const
|
||||
{
|
||||
return _cacheSize;
|
||||
}
|
||||
@@ -76,7 +76,7 @@ class OSGUTIL_EXPORT TriStripVisitor : public BaseOptimizerVisitor
|
||||
return _minStripSize;
|
||||
}
|
||||
|
||||
inline const unsigned int getMinStripSize() const
|
||||
inline unsigned int getMinStripSize() const
|
||||
{
|
||||
return _minStripSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user