Data structures for storing finger/stylus movements in drawing application?

Posted by mattja?øb on Programmers See other posts from Programmers or by mattja?øb
Published on 2012-10-10T16:19:50Z Indexed on 2012/10/10 21:53 UTC
Read the original article Hit count: 202

Filed under:
|
|
|
|

I have a general question about creating a drawing application, the language could be C++ or ObjectiveC with OpenGL. I would like to hear what are the best methods and practices for storing strokes data. Think of the many iPad apps that allow you to draw with your finger (or a stylus) or any other similar function on a desktop app.

To summarize, the data structure must:

  • be highly responsive to the movement
  • store precise values (close in space / time)
  • usable for rendering the strokes with complex textures (textures based on the dynamic of the stroke etc)
  • exportable to a text file for saving/loading

© Programmers or respective owner

Related posts about c++

Related posts about ios