X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=c41c09551baea84b6af79bba549c670a0902761e;hb=68b46b6a6eebe57b1617a8efa1b25eed8ab78c80;hp=251c556eed6255b068a2caea349bd780a66f6ac0;hpb=3315f206fb8eb69a23612cd9be5fc558316fa52b;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index 251c556..c41c095 100644 --- a/scene.c +++ b/scene.c @@ -225,14 +225,15 @@ void makeMenu() { object = glutCreateMenu(processObjectEvents); for ( int i = 0; objectMenuEntries[i]; i++ ) { - glutAddMenuEntry( objectMenuEntries[i], i ); - + glutAddMenuEntry( objectMenuEntries[i], i ); + } - glutCreateMenu(mymenu); + glutCreateMenu(processMainEvents); glutAddMenuEntry("Exit", 99); glutAttachMenu(GLUT_RIGHT_BUTTON); + } void display() {