Membuat Snowflake di OpenGL menggunakan Codeblocks Program Snowflake : #include #include #ifdef __APPLE__ #include #else #include #endif float a = 0.0; void object(){ glBegin(GL_LINE_STRIP); glVertex2f(5.0,5.0); glVertex2f(6.0,5.0); glVertex2f(6.5,5.5); glVertex2f(6.8,5.5); glVertex2f(6.3,5.0); glVertex2f(7.3,5.0); glVertex2f(7.7,5.4); glVertex2f(7.9,5.4); glVertex2f(7.5,5.0); glVertex2f(8.5,5.0); glVertex2f(8.8,5.3); glVertex2f(9.0,5.3); glVertex2f(8.7,5.0); glVertex2f(9.5,5.0); glVertex2f(9.8,4.95); glEnd(); } void object2(){ glBegin(GL_LINE_STRIP); glVertex2f(5.0,4.9); glVertex2f(6.0,4.9); glVertex2f(6.5,4.4); glVertex2f(6.8,4.4); glVertex2f(6.3,4.9); glVertex2f(7.3,4.9); glVertex2f(7.7,4.5); glVertex2f(7.9,4.5); glVertex2f(7.5,4.9); glVertex2f(8.5,4.9); glVertex2f(8.8,4.6); glVertex2f(9.0,4.6); glVertex2f(8.7,4.9); glVertex2f(9.5,4.9);
Temukan jawaban dari pertanyaan anda kuliinfor.blogspot.com