Remove useless cases

This commit is contained in:
Mylloon 2022-05-19 10:51:50 +02:00
parent 63af44462f
commit df3aafd87e
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 1 additions and 16 deletions

View file

@ -1,4 +1,4 @@
/* TP6 */ /* TP 6 et 7 */
#include "../includes/animations.h" #include "../includes/animations.h"
@ -22,9 +22,6 @@ void cube(int etat) {
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
break; break;
case GL4DH_UPDATE_WITH_AUDIO:
break;
case GL4DH_DRAW: case GL4DH_DRAW:
glClearColor(rgb[0], rgb[1], rgb[2], 1.f); glClearColor(rgb[0], rgb[1], rgb[2], 1.f);
static GLfloat cube_rotation = 0; static GLfloat cube_rotation = 0;
@ -53,9 +50,6 @@ void cube(int etat) {
++cube_rotation; ++cube_rotation;
break; break;
case GL4DH_FREE:
break;
default: default:
break; break;
} }

View file

@ -25,9 +25,6 @@ void polygone(int etat) {
} }
break; break;
case GL4DH_UPDATE_WITH_AUDIO:
break;
case GL4DH_DRAW: case GL4DH_DRAW:
glClearColor(.0f, .0f, .5f, 1.f); glClearColor(.0f, .0f, .5f, 1.f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
@ -83,9 +80,6 @@ void polygone(int etat) {
b += 2; b += 2;
break; break;
case GL4DH_FREE:
break;
default: default:
break; break;
} }

View file

@ -19,9 +19,6 @@ void voronoi(int etat) {
diag_init(nb_sites, &coords, &colors); diag_init(nb_sites, &coords, &colors);
break; break;
case GL4DH_UPDATE_WITH_AUDIO:
break;
case GL4DH_DRAW: case GL4DH_DRAW:
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glUseProgram(proc_id); glUseProgram(proc_id);