Reputation:
How do you draw a polygon by mouse with openGL in C++?
Upvotes: 2
Views: 2411
Reputation: 3321
Assuming this is homework, and that you want to try to figure this out for yourself before looking at someone else's solution, take a moment to think about:
Upvotes: 5
Reputation: 40507
Start by conditioning the mouse to recognize the shape of a polygon and be able to complete one it sees on a computer screen. You can use operant conditioning (by rewarding the mouse with a food pellet) to train it to an acceptable level of proficiency.
Upvotes: 12
Reputation: 14919
Maybe go to class, pay attention, and learn what the teacher says? Or look at the NeHe tutorials, which you can find through five minutes of using the almighty Google?
Upvotes: 4