OPEN GL DEV C++ LOGO MARBORO
Postingan kali ini kita akan belajar menggunakan OPEN GL Dec C++ menggunakan Glut dengan gaya bahasa pemograman yang hampir kemirip miripan dengan C++, kita akan membuat logo Marboro, ada yang tau roko marboro, dan siap yang suka meroko, salah satunya roko marboro 3 Dimensi akan hadir di abad 21, semoga bermanfaat. Codingan Logo Marboro : #include<GL/glut.h> GLfloat xRotated, yRotated, zRotated; void Display(void) { glClear(GL_COLOR_BUFFER_BIT); glLoadIdentity(); glTranslatef(0.0,0.0,-4.0); glRotatef(xRotated,1.0,0.0,0.0); glRotatef(yRotated,0.0,1.0,0.0); glRotatef(zRotated,0.0,0.0,1.0); glScalef(2.0,1.0,1.0); //Depan glBegin(GL_POLYGON); //Merah glColor3f(1.0,0.0,0.0); glVertex3f(-0.50,0.50,0.0); glVertex3f(0.50,0.50,0.0); glVertex3f(0.50,-0.70,0.0); glVertex3f(0.0,0.0,0.0); glVertex3f(-0.50,-0.70,0.0); glEnd(); //belakang glBegin(GL_POLYGON); //Merah glColor3f(1.0,0.0,0.0); glVertex3f(-0.50,0.50,0.40); glVertex3f(0.50,0.50,0.40); glVertex3f(...