register mouse input callback functions int mainint

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ouble buffer display mode. * Register mouse input callback functions */ int main(int argc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB); glutInitWindowSize (250, 250); glutInitWindowPosition (100, 100); glutCreateWindow (argv[0]); init (); glutDisplayFunc(display); glutReshapeFunc(reshape); glutMouseFunc(mouse); glutMainLoop(); return 0; /* ANSI C requires main to return int. */ } 3) Combine the previous lab exercise with this week exercise (output should have a dot and spinning cube)....
View Full Document

This note was uploaded on 08/17/2011 for the course CS 102 taught by Professor Halimah during the Summer '11 term at International Islamic University Malaysia.

Ask a homework question - tutors are online