Commit a3c8704d authored by Pavel Rojtberg's avatar Pavel Rojtberg

ovis: implement MATERIAL_LINE_WIDTH

parent 0bb0989f
......@@ -31,6 +31,7 @@ enum SceneSettings
enum MaterialProperty
{
MATERIAL_POINT_SIZE,
MATERIAL_LINE_WIDTH,
MATERIAL_OPACITY,
MATERIAL_EMISSIVE,
MATERIAL_TEXTURE0,
......
......@@ -753,6 +753,13 @@ void setMaterialProperty(const String& name, int prop, const Scalar& val)
col.saturate();
rpass->setEmissive(col);
break;
case MATERIAL_LINE_WIDTH:
#if OGRE_VERSION >= ((1 << 16) | (11 << 8) | 2)
rpass->setLineWidth(val[0]);
#else
CV_Error(Error::StsError, "needs OGRE 1.11.2+ for this");
#endif
break;
default:
CV_Error(Error::StsBadArg, "invalid or non Scalar property");
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment