iphone Programming Glossary: currentstroke
OpenGL ES Simple Undo Last Drawing http://stackoverflow.com/questions/2708055/opengl-es-simple-undo-last-drawing You also have the option of storing the points in an array at every touchesBegan and touchesMoved call. As in here currentStroke addObject NSValue valueWithCGPoint point And when touchesEnded you can move this to another mutable array such as allPoints..
Drawing app on iPad using OpenGL http://stackoverflow.com/questions/4606680/drawing-app-on-ipad-using-opengl C this is in Obj C Invert the Y axis to conform the iPhone top down approach invertedYBegCoord self.bounds.size.height currentStroke objectAtIndex i CGPointValue .y invertedYEndCoord self.bounds.size.height currentStroke objectAtIndex i 1 CGPointValue .y.. self.bounds.size.height currentStroke objectAtIndex i CGPointValue .y invertedYEndCoord self.bounds.size.height currentStroke objectAtIndex i 1 CGPointValue .y invertedYThirdCoord self.bounds.size.height currentStroke objectAtIndex i 2 CGPointValue.. self.bounds.size.height currentStroke objectAtIndex i 1 CGPointValue .y invertedYThirdCoord self.bounds.size.height currentStroke objectAtIndex i 2 CGPointValue .y Figure our how many dots you need count MAX ceilf sqrtf currentStroke objectAtIndex i..
|