I want to draw a line on the CCLayer... ... What is the most simple way to do it?
Also, is there any books for cocas2d for reference to the basic staff? thz a lot.
How can I draw a line on a CCLayer?
(2 posts) (2 voices)-
Posted 2 years ago #
-
/** draws a line given the origin and destination point */
void ccDrawLine( CGPoint origin, CGPoint destination );Look in CCDrawingPrimitives.m for more OpenGL methods.
Posted 2 years ago #
Reply
You must log in to post.