30 manifestants selon la police
This commit is contained in:
parent
fbcb4dd4c3
commit
6c19f0e785
1 changed files with 5 additions and 5 deletions
10
src/manif.c
10
src/manif.c
|
@ -9,7 +9,7 @@ struct manifestant {
|
||||||
GLfloat ox, oz;
|
GLfloat ox, oz;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define HEROS_NUMBER 20 // should change in fragment shader too
|
#define HEROS_NUMBER 30 // should change in fragment shader too
|
||||||
static struct manifestant _herosId[HEROS_NUMBER];
|
static struct manifestant _herosId[HEROS_NUMBER];
|
||||||
|
|
||||||
static const char *matrix_proj = "proj";
|
static const char *matrix_proj = "proj";
|
||||||
|
@ -171,10 +171,10 @@ static void draw(void) {
|
||||||
gl4dgDraw(_herosId[i].bras_d);
|
gl4dgDraw(_herosId[i].bras_d);
|
||||||
}
|
}
|
||||||
|
|
||||||
glUniform4fv(glGetUniformLocation(_pId, "lum_pos"), HEROS_NUMBER,
|
/* On devrait donner HEROS_NUMBER mais pour éviter de ne plus rien voir avec
|
||||||
(float *)lumpos);
|
* les lumières, on en donne que 20 */
|
||||||
glUniform4fv(glGetUniformLocation(_pId, "lum_color"), HEROS_NUMBER,
|
glUniform4fv(glGetUniformLocation(_pId, "lum_pos"), 20, (float *)lumpos);
|
||||||
(float *)lumcolor);
|
glUniform4fv(glGetUniformLocation(_pId, "lum_color"), 20, (float *)lumcolor);
|
||||||
|
|
||||||
deplacement += (float)(0.4 * M_PI * dt);
|
deplacement += (float)(0.4 * M_PI * dt);
|
||||||
glUseProgram(0);
|
glUseProgram(0);
|
||||||
|
|
Reference in a new issue