![]() Unfortunately, setting up OpenGL adds a ton of code and can be very confusing. If your familiar with OpenGL, you can get a good performance boost even for 2D because it can manipulate the "splotch" source images, offscreen rendering, and layering with a lot less code then you would have to do in CoreGraphics.This will allow you to redraw the entire piece with just a few transparent images, instead of thousands of little "splotches" every time. You can convert the "segments" from (3) into a single image by rendering them to an off screen buffer.Record your path, (x,y), size, "splotch" choice, and color continuously as the person is dragging, however, break it up into segments based on touch down/up or a maximum size, that way you can provide a step by step "undo" functionality. ![]() This prevents the crayon from becoming a solid color.
0 Comments
Leave a Reply. |