<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 09/15/14 16:57, wrote:<br>
</div>
<blockquote
cite="mid:C40B2F181831EF44A88CD73525827803130B1667E1@MERCERMAIL.MercerU.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
<p>Hello,</p>
<p><br>
</p>
<p>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.
</p>
<p><br>
</p>
<p>I'm mostly confused about the difference between the void
glutMouseFunc and the void mouse functions and the role each
has.
</p>
<p><br>
</p>
<p>Thanks!</p>
<p><br>
</p>
<p><br>
</p>
</blockquote>
<br>
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.<br>
<br>
glutMouseFunc is the GLUT call that takes as an argument the name of
the mouse function (in this case it is "mouse").<br>
<br>
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. <br>
<br>
<pre class="moz-signature" cols="72">--
Andrew J. Pounds, Ph.D. (<a class="moz-txt-link-abbreviated" href="mailto:pounds_aj@mercer.edu">pounds_aj@mercer.edu</a>)
Professor of Chemistry and Computer Science
Mercer University, Macon, GA 31207 (478) 301-5627
<a class="moz-txt-link-freetext" href="http://faculty.mercer.edu/pounds_aj">http://faculty.mercer.edu/pounds_aj</a>
</pre>
</body>
</html>