[android-developers] opengl( how to move the objects )

2011-08-20 Thread rajiv
The problem is switch (e.getAction()) { case MotionEvent.ACTION_DOWN: x=e.getX(); y=e.getY(); requestRender(); break; case MotionEvent.ACTION_UP: a=e.getX(); b=e.getY();

Re: [android-developers] opengl( how to move the objects )

2011-08-20 Thread TreKing
On Sat, Aug 20, 2011 at 5:29 AM, rajiv rajiv.di...@gmail.com wrote: Here the value of X and y and a b are same but when it is Action_up the co-ordinate of X Y ab should be different Please help me The little information you posted is not enough for anyone to help you. Try debugging your

[android-developers] opengl( how to move the objects )

2011-08-18 Thread rajiv
Hi friends I am trying to develop the tower of honoi by using android opengl the problem is i need to move the disc from sorce to destination how can i do that in opengl -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] opengl( how to move the objects )

2011-08-18 Thread TreKing
On Thu, Aug 18, 2011 at 1:41 AM, rajiv rajiv.di...@gmail.com wrote: the problem is i need to move the disc from sorce to destination how can i do that in opengl A - Moving a disc from sorce to destination is a logic problem, not an OpenGL problem. Google Towers of Hanoi algorithm. B - This