Reputation: 5442
Am very new to OpenGL ES framework
in iPhone. Am started to study about OpenGL ES in iPhone. I want to draw a straight line with animation
in the demo iPhone game app
. Where the user touching in the screen, i want to draw the line, to that touched direction with animation. Can any one please suggest any sample code to do that learn how the functionality is working. Please help me. I have spent 4 hours to get the solution in Google search. Thanks in advance.
Upvotes: 1
Views: 1702
Reputation: 13192
I found this tutorial of OpenGL ES under iPhone extremely useful: http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-table-of.html I don't know whether it has an example what you describe but it's sure that when you finish it, you'll be able to draw a line as you want. Also, in 4 hours you can make nice progress in it :)
EDIT: for line drawing have a look at this: http://www.iphonedevsdk.com/forum/iphone-sdk-development/5353-draw-line-b-opengl.html
Upvotes: 1