[CSC 315] Coordinate Mapping
Andrew J. Pounds
pounds_aj at mercer.edu
Tue Sep 6 19:13:41 EDT 2016
Guys and Gals -- I have created a modified version of the mousekeys
repository that does all of the window mapping that we have been talking
about in in class. To look at it you need to clone the repository...
git clone https://github.com/drlbs/mousekeys.git
And then after you cd to the mousekeys directory checkout the coordshift
branch
cd mousekeys
git checkout coordshift
Then look at the interact.c code. All of the meaningful stuff is in
the drawBox method (lines 95 to 130). To explicitly show how the mapping
is working I print out out both the window and world coordinates in the
console. Let me know if you have any questions.
--
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/20160906/f0882e8f/attachment.html>
More information about the csc315
mailing list