This is probably a simple case of not seeing the issue because the functions are named so similarly. When you're registering your callbacks, don't you want this
glutMouseFunc(motionFunction);
to...
Type: Posts; User: rags_to_riches
This is probably a simple case of not seeing the issue because the functions are named so similarly. When you're registering your callbacks, don't you want this
glutMouseFunc(motionFunction);
to...
You need to link in the GLut or OpenGL library. Consult the documentation for the library and/or the development environment you're using to find out how to do this.