X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=2bf72a3c2682013c0238c32df5a3f37227df68cc;hb=893757ee1bb56fd26df3f84fb66403d17f27a801;hp=b9d9c0733d0009ecdc68f3f7135cf80b97b2e9c9;hpb=70f41c4285f311732a9e0511f41f35a0c9199586;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index b9d9c07..2bf72a3 100644 --- a/scene.c +++ b/scene.c @@ -129,7 +129,8 @@ void processTextureEvents(int id) { * @param id ID of ground texture selected */ void processGTextureEvents(int id) { - + currentGroundTexture = id; + glutPostRedisplay(); } /** @@ -169,7 +170,7 @@ void makeMenu() { //glutAddMenuEntry("Rotation/Texture Scale", M_ROTATION_TEXTURE_SCALE); //glutAddSubMenu("Material", materialMenu); //glutAddSubMenu("Texture", textureMenu); - //glutAddSubMenu("Ground texture", gTextureMenu); + glutAddSubMenu("Ground texture", gTextureMenu); //glutAddSubMenu("Lights", lightMenu); glutAddMenuEntry("Exit", M_EXIT);