I am trying to show bounding rectangles around my sprites to refine the collision detection and handling.
I have used following code to display circle or polygon
glColor4ub(255, 255, 0, 255);
glLineWidth(2);
CGPoint vertices2[] = { ccp(30,130), ccp(30,230), ccp(50,200) };
ccDrawPoly( vertices2, 3, YES);
ccDrawCircle(ccp(0,0), 50, 360, 5, NO);
as mentioned in drawPrimitivesTest.m file in cocos2d.
i removed all background sprites also. but it is not showing me any circle or polygon.
can anybody has faced same problem? how to solve this problem?
Thanks in advance.