i want to draw a line just like the rubber band to shot the bird in angrybird! i use the code below ,but nothing show ,i am a newbie
-(void)draw
{
glLineWidth(10.0f);
GLfloat ver[4] = {_startPoint1.x,_startPoint1.y,_endPoint.x,_endPoint.y};
glVertexAttribPointer(kCCVertexAttribFlag_Position, 2, GL_FLOAT, GL_FALSE, 0, ver);
glDrawArrays(GL_LINES, 0, 2);
ccGLEnableVertexAttribs(kCCVertexAttribFlag_Position|kCCVertexAttribFlag_Color);
}