本文整理汇总了C++中Graphic::regenerateTransparencyModel方法的典型用法代码示例。如果您正苦于以下问题:C++ Graphic::regenerateTransparencyModel方法的具体用法?C++ Graphic::regenerateTransparencyModel怎么用?C++ Graphic::regenerateTransparencyModel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Graphic
的用法示例。
在下文中一共展示了Graphic::regenerateTransparencyModel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: drawMetatileEffect
//.........这里部分代码省略.........
1);
metatileGraphic.drawLine(0, 8,
8, 0,
Color(0xFF, 0x80, 0x80,
Color::fullAlphaOpacity),
1);
metatileGraphic.drawLine(0, 8,
8, 15,
Color(0xFF, 0x80, 0x80,
Color::fullAlphaOpacity),
1);
break;
case 0x75:
metatileGraphic.drawLine(0, 8,
15, 8,
Color(0xFF, 0x80, 0x80,
Color::fullAlphaOpacity),
1);
metatileGraphic.drawLine(15, 8,
8, 0,
Color(0xFF, 0x80, 0x80,
Color::fullAlphaOpacity),
1);
metatileGraphic.drawLine(15, 8,
8, 15,
Color(0xFF, 0x80, 0x80,
Color::fullAlphaOpacity),
1);
break;
default:
break;
}
break;
case MetatileTypes::napalm:
metatileGraphic.clear(
Color(0xFF, 0x80, 0x80, Color::fullAlphaOpacity));
metatileGraphic.fillRect(5, 5, 7, 7,
Color(0, 0, 0, Color::fullAlphaOpacity),
Graphic::noTransUpdate);
metatileGraphic.drawLine(8, 5,
8, 2,
Color(0, 0, 0, Color::fullAlphaOpacity),
1);
break;
case MetatileTypes::downOnly:
metatileGraphic.clear(
Color(0x00, 0x00, 0x00, Color::fullAlphaOpacity));
// metatileGraphic.fillRect(8, 0, 1, 16,
// Color(0xFF, 0xFF, 0x00, Color::fullAlphaOpacity),
// Graphic::noTransUpdate);
metatileGraphic.drawLine(8, 0,
8, 15,
Color(0xFF, 0xFF, 0x00,
Color::fullAlphaOpacity),
1);
metatileGraphic.drawLine(0, 8,
8, 15,
Color(0xFF, 0xFF, 0x00,
Color::fullAlphaOpacity),
1);
metatileGraphic.drawLine(8, 15,
15, 8,
Color(0xFF, 0xFF, 0x00,
Color::fullAlphaOpacity),
1);
break;
case MetatileTypes::bigGust:
metatileGraphic.clear(
Color(0x80, 0xFF, 0x80, Color::fullAlphaOpacity));
metatileGraphic.drawLine(8, 0,
8, 15,
Color(0x00, 0x00, 0xFF,
Color::fullAlphaOpacity),
1);
metatileGraphic.drawLine(0, 8,
8, 0,
Color(0x00, 0x00, 0xFF,
Color::fullAlphaOpacity),
1);
metatileGraphic.drawLine(8, 0,
15, 8,
Color(0x00, 0x00, 0xFF,
Color::fullAlphaOpacity),
1);
break;
case MetatileTypes::typeD:
case MetatileTypes::type10:
case MetatileTypes::type12:
metatileGraphic.drawLine(0, 0,
15, 15,
Color(0xFF, 0x00, 0x00,
Color::fullAlphaOpacity),
1);
break;
default:
break;
}
metatileGraphic.regenerateTransparencyModel();
}