开发者

Cocos2D iPad Vector Sprites/Spritesheet creation

开发者 https://www.devze.com 2023-01-04 20:35 出处:网络
Is there a way to load vector graphics into the iPad using cocos(or some other method) as sprites or sprite sheets but leaving the images as vectors and not textures? The reason being is we have an an

Is there a way to load vector graphics into the iPad using cocos(or some other method) as sprites or sprite sheets but leaving the images as vectors and not textures? The reason being is we have an animation that is just way way too big to load in as a texture so we want to scale it down using a vector image.

If this isn't the right way to do this then maybe another 开发者_运维百科suggestion?

Cheers


Cocos2d is designed around sprites, so I don't think there is anything built in. The best solution that I can think of is to create a custom 'CCNode' and override the 'draw' method. Then you could use custom OpenGL calls to draw your vectors. Someone may have already created a class you can use, but I haven't seen it.

0

精彩评论

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

关注公众号