mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 19:44:14 +08:00
ovis: implement MATERIAL_LINE_WIDTH
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user