Головна‎ > ‎OpenGL‎ > ‎Додатково‎ > ‎

Зірка по точках

glBegin(GL_LINES);

glVertex3d(2.7, 3.25, 0); 
glVertex3d(0.6, 3.25, 0);

glVertex3d(-0.6, 3.25, 0); 
glVertex3d(-2.7, 3.25, 0);


glVertex3d(0, 5, 0); 
glVertex3d(0.6, 3.25, 0);

glVertex3d(0, 5, 0); 
glVertex3d(-0.6, 3.25, 0);
glVertex3d(0, 1, 0); 
glVertex3d(-1.8, -0.4, 0);


glVertex3d(0, 1, 0); 
glVertex3d(1.8, -0.4, 0);

glVertex3d(1.1, 1.8, 0); 
glVertex3d(1.8, -0.4, 0);


glVertex3d(1.1, 1.8, 0); 
glVertex3d(2.7, 3.25, 0);

glVertex3d(-1.1, 1.8, 0); 
glVertex3d(-1.8, -0.4, 0);


glVertex3d(-1.1, 1.8, 0); 
glVertex3d(-2.7, 3.25, 0);


glEnd();