Quartz2d – Any use alongside Cocos2d?

Forums Programming cocos2d support (graphics engine) Quartz2d – Any use alongside Cocos2d?

This topic contains 3 replies, has 2 voices, and was last updated by  quano 4 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
October 2, 2009 at 9:18 am #217683

indy2005
@indy2005

Hi,

Anyone using Quartz2d to any good effect alongside Cocos2d, or is this unecessary? i.e. using Quartz 2D to draw onto a texture which you can then use as a sprite (for example creating curves). Or is this unecessary as Cocos2D encapsulates most of this functionality?

Regards

i

November 29, 2009 at 2:45 am #262495

quano
@quano

I wonder about this too, if there’s a good way to combine quartz and cocos2d (opengl). I want to draw cruves also, ones that are anti aliased, and quartz has that functionality. OpenGL can draw lines and curves, but I haven’t managed to get them AA:ed on the iPhone (see this thread http://stackoverflow.com/questions/1813035/opengl-es-iphone-drawing-anti-aliased-lines).

EDIT:

Searching deeper into the forum, I found this:

http://www.cocos2d-iphone.org/forum/topic/2671#post-16672

EDIT2:

Ooo, it’s that method. I thought of it before. I really don’t think it’ll be that fast. Generating a new texture and draw on it every frame sounds very performance demanding.

I’m gonna look into that tomorrow.

November 29, 2009 at 11:49 am #262496

indy2005
@indy2005

Thanks…

November 29, 2009 at 3:58 pm #262497

quano
@quano

Okay I tried it out now, and it’s really sloooooooooooow. It might work if you’re just gonna draw something every now and then, maybe once a second or even more infrequently, but drawing more than that just slows everything down disturbingly much.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.