Cara membuat boneka salju 3D di OpenGL
Berikut merupakan script lengkap membuat boneka salju 3D : #include <stdlib.h> #include <glut.h> int w=480, h=480, z=0; int x1=0, y1=0, sudut=0, z1=0; void bawah () { glColor3ub(255, 255, 255); glutWireSphere(5,100,100); } void tengah() { glColor3ub(255, 255, 255); glutWireSphere(4,100,100); } void atas() { glColor3ub(255, 255, 255); glutWireSphere(3,100,100); } void matakanan() { glColor3ub(0, 0, 0); glutWireSphere(0.5,100,100); } void matakiri() { glColor3ub(0, 0, 0); glutWireSphere(0.5,100,100); } void topi() { glColor3ub(0, 55, 252); glutWireCone(3,5,100,100); } void renderScene(void){ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glL...