本文整理汇总了C++中GraphicsObject::mono方法的典型用法代码示例。如果您正苦于以下问题:C++ GraphicsObject::mono方法的具体用法?C++ GraphicsObject::mono怎么用?C++ GraphicsObject::mono使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GraphicsObject
的用法示例。
在下文中一共展示了GraphicsObject::mono方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PrintGraphicsObjectToTree
void GraphicsObjectData::PrintGraphicsObjectToTree(const GraphicsObject& go,
std::ostream* tree) {
if (go.mono())
*tree << "(mono) ";
if (go.invert())
*tree << "(invert) ";
if (go.light())
*tree << "(light=" << go.light() << ") ";
if (go.tint() != RGBColour::Black())
*tree << "(tint=" << go.tint() << ") ";
if (go.colour() != RGBAColour::Clear())
*tree << "(colour=" << go.colour() << ") ";
if (go.compositeMode())
*tree << "(composite=" << go.compositeMode() << ") ";
if (go.xOrigin())
*tree << "(xOrigin=" << go.xOrigin() << ") ";
if (go.yOrigin())
*tree << "(yOrigin=" << go.yOrigin() << ") ";
}
示例2: render
void ColourFilterObjectData::render(const GraphicsObject& go,
const GraphicsObject* parent,
std::ostream* tree) {
if (go.mono() == 0) {
RGBAColour colour = go.colour();
colour.setAlpha(
static_cast<int>(colour.a_float() * go.computedAlpha()));
graphics_system_.fillScreenArea(screen_rect_, colour);
if (tree)
objectInfo(*tree);
} else {
static bool printed = false;
if (!printed) {
printed = true;
cerr << "We don't yet deal with objMono() and colour filters." << endl;
}
}
}