1.首先setMidpoint()函数是设置进度条的起始点,(0,y)表示最左边,(1,,y)表示最右边,(x,1)表示最上面,(x,0)表示最下面。
然后setBarChangeRate()函数是用来设置进度条动画方向的,(1,0)表示横方向,(0,1)表示纵方向。
2.CCRenderTexture类可以用来截图和存储图片,貌似很强大,下面是cocos2d源码关于CCRenderTexture类的介绍
CCRenderTexture is a generic rendering target. To render things into it,
simply construct a render target, call begin on it, call visit on any cocos2d
scenes or objects to render them, and call end. For convenience, render texture
adds a sprite as its display child with the results, so you can simply add
the render texture to your scene and treat it like any other CCNode.
There are also functions for saving the render texture to disk in PNG or JPG format.
恩, 这个class是个好class