PEMANDANGA DI GLUT C++
OpenGL #include <GL/glut.h> #include <stdlib.h> void display(void) { glClear(GL_COLOR_BUFFER_BIT); glLineWidth(3); glBegin(GL_POLYGON);//baground glColor3f(1.0,1.0,1.0); glVertex2f(-10,10); glColor3f(1.0,1.0,1.0); glVertex2f(10,10); glColor3f(0.0,0.0,1.0); glVertex2f(10,-10); glColor3f(0.0,0.0,1.0); glVertex2f(-10,-10); glEnd(); glBegin(GL_POLYGON);//gunung glColor3f(0.0,1.0,0.0); glVertex2f(-2,5); glColor3f(0.0,1.0,0.0); glVertex2f(5,-1); glColor3f(0.0,1.0,0.0); glVertex2f(-10,-1); glEnd(); glBegin(GL_POLYGON);//gunung2 glColor3f(0.0,1.0,0.0); glVertex2f(5,5); glColor3f(0.0,1.0,0.0); glVertex2f(15,-1); glColor3f(0.0,1.0,0.0); glVertex2f(-5,-1); glEnd(); glColo