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


C++ GrGeometryProcessor::localMatrix方法代码示例

本文整理汇总了C++中GrGeometryProcessor::localMatrix方法的典型用法代码示例。如果您正苦于以下问题:C++ GrGeometryProcessor::localMatrix方法的具体用法?C++ GrGeometryProcessor::localMatrix怎么用?C++ GrGeometryProcessor::localMatrix使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GrGeometryProcessor的用法示例。


在下文中一共展示了GrGeometryProcessor::localMatrix方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: GenKey

 static inline void GenKey(const GrGeometryProcessor& gp,
                           const GrBatchTracker& bt,
                           const GrGLSLCaps&,
                           GrProcessorKeyBuilder* b) {
     const BatchTracker& local = bt.cast<BatchTracker>();
     uint32_t key = local.fInputColorType << 16;
     key |= local.fUsesLocalCoords && gp.localMatrix().hasPerspective() ? 0x1 : 0x0;
     key |= ComputePosKey(gp.viewMatrix()) << 1;
     b->add32(key);
 }
开发者ID:amyvmiwei,项目名称:skia,代码行数:10,代码来源:GrAAConvexPathRenderer.cpp

示例2: GenKey

 static inline void GenKey(const GrGeometryProcessor& gp,
                           const GrBatchTracker& bt,
                           const GrGLCaps&,
                           GrProcessorKeyBuilder* b) {
     const GrDistanceFieldTextureEffect& dfTexEffect = gp.cast<GrDistanceFieldTextureEffect>();
     const DistanceFieldBatchTracker& local = bt.cast<DistanceFieldBatchTracker>();
     uint32_t key = dfTexEffect.getFlags();
     key |= local.fInputColorType << 16;
     key |= local.fUsesLocalCoords && gp.localMatrix().hasPerspective() ? 0x1 << 24: 0x0;
     key |= ComputePosKey(gp.viewMatrix()) << 25;
     b->add32(key);
 }
开发者ID:Zahnstocher,项目名称:OsmAnd-external-skia,代码行数:12,代码来源:GrDistanceFieldTextureEffect.cpp

示例3: GenKey

 static inline void GenKey(const GrGeometryProcessor& gp,
                           const GrBatchTracker& bt,
                           const GrGLCaps&,
                           GrProcessorKeyBuilder* b) {
     const DefaultGeoProc& def = gp.cast<DefaultGeoProc>();
     const BatchTracker& local = bt.cast<BatchTracker>();
     uint32_t key = def.fFlags;
     key |= local.fInputColorType << 8 | local.fInputCoverageType << 16;
     key |= local.fUsesLocalCoords && gp.localMatrix().hasPerspective() ? 0x1 << 24 : 0x0;
     key |= ComputePosKey(gp.viewMatrix()) << 25;
     b->add32(key);
 }
开发者ID:Igalia,项目名称:skia,代码行数:12,代码来源:GrDefaultGeoProcFactory.cpp

示例4: GenKey

 static inline void GenKey(const GrGeometryProcessor& proc,
                           const GrBatchTracker& bt,
                           const GrGLCaps&,
                           GrProcessorKeyBuilder* b) {
     const BitmapTextBatchTracker& local = bt.cast<BitmapTextBatchTracker>();
     // We have to put the optional vertex attribute as part of the key.  See the comment
     // on addVertexAttrib.
     // TODO When we have deferred geometry we can fix this
     const GrBitmapTextGeoProc& gp = proc.cast<GrBitmapTextGeoProc>();
     uint32_t key = 0;
     key |= SkToBool(gp.inColor()) ? 0x1 : 0x0;
     key |= local.fUsesLocalCoords && proc.localMatrix().hasPerspective() ? 0x2 : 0x0;
     key |= gp.maskFormat() == kARGB_GrMaskFormat ? 0x4 : 0x0;
     key |= ComputePosKey(gp.viewMatrix()) << 3;
     b->add32(local.fInputColorType << 16 | key);
 }
开发者ID:Ashu17,项目名称:blackberry,代码行数:16,代码来源:GrBitmapTextGeoProc.cpp


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