Postingan

Menampilkan postingan dari Juni, 2017

OPEN GL DEV C++ LOGO MARBORO

Gambar
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(...

OPEN GL DEV C++ LOGO PERTAMINA

Gambar
pagi untuk semua warga bloger indonesia yang menjalani aktifiasnya masing-masing dan selalu ingin belajar dan terus berkembang untuk terus memanfaatkan waktunya setiap hari dengan hal-hal yang positif, ini adalah tugas praktikum, tugas membuat logo, disini membuat logo sederhana dengan aplikasi dev dan glut logo yang bersimbolis logo pertamini, pelajari lagi ya jangan langsung di copy paste wk, wk, wk. salam hormat untuk blogger indonesia. #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.3,0.05,0.0); glVertex3f(0.8,0.05,0.0); glVertex3f(0.5,0.55,0.0); glVertex3f(0.0,0.55,0.0); glEnd(); glBegin(GL_POLYGON); //hijau glColor3f(0.0,1.0,0.0); glVertex3f(0.3,-0.05...