开发者

Cocos2d with tabbarcontroller?

开发者 https://www.devze.com 2023-04-05 03:13 出处:网络
is it possible to integrate cocos2d with Normal iphoneor tabbarcontoller application?bcos I开发者_Python百科 want to ingrate animation of cocos2d with tabbar application?You don\'t need multiple EAGLV

is it possible to integrate cocos2d with Normal iphone or tabbarcontoller application?bcos I开发者_Python百科 want to ingrate animation of cocos2d with tabbar application?


You don't need multiple EAGLViews. You just need to add the UIToolbar as a subview of the openGLView of CCDirector. Then make sure your Cocos Layers have are vertical offset so they don't overlap.


Yes it's possible if you tweak a bit cocos2d in order it can manage several EAGLViews (so far there is only one eaglview).

[edit] Managing several opengl views is not the only method (it's case 4 in the doc below).

Flower Garden (appstore game) merges uikit and opengl layers (it's not made with cocos2d but it doesn't change anything to the problem, it's EAGLViews on top of UIKit). They've published an excellent presentation here :

http://gamesfromwithin.com/wp-content/uploads/2010/03/GDC10_uikit_opengl.pdf

0

精彩评论

暂无评论...
验证码 换一张
取 消