Commit 30567982 authored by Pavel Rojtberg's avatar Pavel Rojtberg

ovis: add setBackgroundColor convenience overload

parent cc8a8d2d
......@@ -49,6 +49,9 @@ public:
*/
CV_WRAP virtual void setBackground(InputArray image) = 0;
/// @overload
CV_WRAP_AS(setBackgroundColor) virtual void setBackground(const Scalar& color) = 0;
/**
* place an entity of an mesh in the scene
*
......
......@@ -300,6 +300,12 @@ public:
rpass->getTextureUnitStates()[0]->setTextureName(name);
}
void setBackground(const Scalar& color)
{
Mat img(1, 1, CV_8UC3, color);
setBackground(img);
}
void createEntity(const String& name, const String& meshname, InputArray tvec, InputArray rot)
{
Entity* ent = sceneMgr->createEntity(name, meshname, RESOURCEGROUP_NAME);
......
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