[CSC 315] Mouse Input Example Code
Andrew J. Pounds
pounds_aj at mercer.edu
Mon Sep 15 17:12:24 EDT 2014
On 09/15/14 16:57, wrote:
>
> Hello,
>
>
> I was wondering if you have a mouse input example code since I missed
> that day and it doesn't seem to be in the codes from class folder.
>
>
> I'm mostly confused about the difference between the void
> glutMouseFunc and the void mouse functions and the role each has.
>
>
> Thanks!
>
>
>
The examples should be in /pub/pounds/CSC315/codesFromClass. They are
entitled interact.c and interact2.cc. You should be able to access
them on cobra. If they do not compile with g++, try gcc.
glutMouseFunc is the GLUT call that takes as an argument the name of the
mouse function (in this case it is "mouse").
glutDisplayFunc, glutKeyboardFunc, and glutMouseFunc take arguments that
are themselves functions that are called whenever glut senses a change
in the state of that particular device.
--
Andrew J. Pounds, Ph.D. (pounds_aj at mercer.edu)
Professor of Chemistry and Computer Science
Mercer University, Macon, GA 31207 (478) 301-5627
http://faculty.mercer.edu/pounds_aj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc315/attachments/20140915/0ee99de6/attachment.html>
More information about the csc315
mailing list