local radius = 100
self.drawNode = cc.DrawNode:create()
self:drawCircle(radius)
self.drawNode:setPosition(pos)
local colorlayer = cc.LayerColor:create(cc.c4b(0, 0, 0, 150))
self.clipNode = cc.ClippingNode:create(self.drawNode)
self.clipNode:setInverted(true)
self.clipNode:setAlphaThreshold(0)
colorlayer:setContentSize(300, 300)
self:addChild(self.clipNode)
self.clipNode:addChild(colorlayer)
代码很简单, 基本都是一样的. 检查了下
GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8};
GLView::setGLContextAttrs(glContextAttrs);
这个断点也是有进入的.
求教!
