Example program: mouse_keyboard_click_position.c
CS-116A: Introduction to Computer Graphics
Instructor: Rob Bruce
Fall 2016

This GLUT program uses event driven programming to monitor for mouse and keyboard events to move 2D objects (triangle, circle, and square) on the screen.

The full source code for mouse_keyboard_click_position.c is available at http://www.cs.sjsu.edu/~bruce/programs/fall_2016_cs_116a/mouse_keyboard_click_position/mouse_keyboard_click_position.c

A Makefile to build this code on your Linux solid state drives is available at http://www.cs.sjsu.edu/~bruce/programs/fall_2016_cs_116a/mouse_keyboard_click_position/linux_makefile/Makefile (right mouse click then select "Save Link As..." to download)

A Makefile to build this code on Mac OSX is available at http://www.cs.sjsu.edu/~bruce/programs/fall_2016_cs_116a/mouse_keyboard_click_position/osx_makefile/Makefile (right mouse click then select "Save Link As..." to download)

NOTE: Make sure you DO NOT call your Makefile Makefile.txt

Your Makefile should be called simply Makefile with NO EXTENSION.

At a terminal on the command line, enter "make" in the same directory where you downloaded mouse_keyboard_click_position.c and Makefile.