I would like to develop an application where the user can draw lines ... but I do not want to draw straight lines, but I want to show the line how users draw it. When the user gets from point A to B, I would like to straighten the line (if users want it).
To do this, I want to change my view of the grid, starting from 0.0 (top left) and ending with 320,480 (for iPhone) and 768,1024 (for iPad) (bottom right).
For that matter, I have point A at 10.10 and point B at 100 100.
My question is:
- How to create this grid?
- How to create these points?
- How to draw this line without straightening it?
- How to draw a straightening line?
My problem is that I am familiar with creating βnormalβ user interface applications. I am not familiar with open-GL ect.
Hope someone can help me.
Best wishes,
Paul Pilen
ios iphone opengl-es grid
Paul peelen
source share