dathatreya
April 21st, 2008, 05:38 AM
Hi
I have created an opengl child inside and mfc dialog.you can refer link:
http://www.codeguru.com/cpp/g-m/opengl/article.php/c5583/.
Now I included two edit boxes at the side of the opengl window and a button.
Now my question is how to make movement for the triangle from the edit boxes (The edit boxes are x,y coordinate values ).Once I enter the x,y values and press the button the triangle should move according to the given x,y coordinates.
can any one give the solution.
I have created an opengl child inside and mfc dialog.you can refer link:
http://www.codeguru.com/cpp/g-m/opengl/article.php/c5583/.
Now I included two edit boxes at the side of the opengl window and a button.
Now my question is how to make movement for the triangle from the edit boxes (The edit boxes are x,y coordinate values ).Once I enter the x,y values and press the button the triangle should move according to the given x,y coordinates.
can any one give the solution.