ccui.TextAtlas:create("100", "num.png", 20, 30, '0')
:getVirtualRenderer()
:setGLProgramState(cc.GLProgramState:getOrCreateWithGLProgramName("ShaderUIGrayScale"))
cc.Sprite:create("title.png")
:addTo(self)
:align(display.CENTER, display.cx, display.cy)
:setGLProgramState(cc.GLProgramState:getOrCreateWithGLProgramName("ShaderUIGrayScale"))
TextAtlas设置Gray
最新推荐文章于 2017-10-12 00:34:18 发布