Added a ColorMapping class

This commit is contained in:
Tats
2014-01-22 13:29:06 -05:00
parent c87a397844
commit e671ffe958
+13
View File
@@ -101,6 +101,19 @@ public:
float getOpacity() const { return _opacity; }
};
class ColorMapping : public Mapping
{
public:
ColorMapping(Paint::ptr paint, Shape::ptr shape,
uid id=NULL_UID)
: Mapping(paint, shape, id) {}
virtual QString getType() const {
return getShape()->getType() + "_color";
}
};
/**
* Object whose paint is an image texture. In the case of a texture mapping we require
* an additional input shape to specify the area on the image where we pick the pixels.