bonjours,
je suis débutant avec c++ et je trouve cette fonction dans un programme cvp aidez-moi pour comprendre cette fonction
glBegin(GL_QUADS);
// glVertex2f(tmpi-(sizex>>2),tmpj+ (sizey>>2));
glVertex2f(tmpi-(sizex>>2),tmpj+(sizey>>2));
glVertex2f(tmpi+(sizex>>2),tmpj+ (sizey>>2));
glVertex2f(tmpi+(sizex>>2),tmpj- (sizey>>2));
glVertex2f(tmpi-(sizex>>2),tmpj- (sizey>>2));
glEnd();
j'ai tmpi et tmpj comme de double,
glBegin(GL_QUADS); pour tracer un carré
mon problème et avec l'instruction (par exemple tmpi-(sizex>>2)) telque je ne comprend pas sad quoi le sizex>>2
svp aidez-moi rapidement
Partager