OpenGL ES 2.0 drawing line based on motion, Line always starts in origin
I've just started learning OpenGL for Android and I'm having a weird problem when drawing lines. All i want to do is to draw a line based on a finger motion. Now as soon as I start swiping I always get a line folowing my motion from the origin(0,0). here a picture: http://imageshack.us/photo/my-images/137/screenshot2012061312174.jpg/ The arrow symbols my finger motion and the line starting in the origin (red circle) is the mentioned line folowing my entire motion. Don't get bothered with the Coords array I know this isn't best practice but I debuged the entire programm and couldn't finde any