当前位置: 首页>>代码示例>>C++>>正文


C++ Graphic::regenerateTransparencyModel方法代码示例

本文整理汇总了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();
}
开发者ID:suppertails66,项目名称:tales,代码行数:101,代码来源:LevelEffectGraphicSceneLayer.cpp


注:本文中的Graphic::regenerateTransparencyModel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。