ios - Using Cocos2D Dynamic Texture as background for View Controller -
i have dynamic texture created ccrendertexture
. use in top half of 1 of view controllers in app.
currently have:
- one app viewcontroller has 2 uibuttons on it
- one app dynamic texture built (similar tutorial:http://www.raywenderlich.com/3857/how-to-create-dynamic-textures-with-ccrendertexture)
so need take dynamic texture, , place upper 25% of view controller in app has 2 uibutton
s in view controller.
how go doing this? need somehow subview view controller has 2 uibutton
s? i'm assuming put dynamic texture background somehow, , lay view 2 uibutton
s on top of it. i'm not totally sure.
per learncocos2d response above, followed advice: best use cocos2d sprite , make view controller's view transparent (opaque = no). or use render textures getuiimage method: learn-cocos2d.com/api-ref/latest_2.x/cocos2d-iphone/html/… note costly operation
Comments
Post a Comment