Entradas

Código Gato Diana Vargas

Imagen
#include <windows.h> #include <math.h> #ifdef _APPLE_ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif float r,g,b; void display(void) //esta func contiene todo lo que voy a dibujar {     glClear(GL_COLOR_BUFFER_BIT);     glColor3f(0,0,0);     glBegin(GL_LINE_STRIP);     glVertex2f(3,15);     glVertex2f(0,12);     glVertex2f(0,8);     glVertex2f(1,2);     glVertex2f(5,2);     glVertex2f(5,4);     glVertex2f(3,4);     glVertex2f(3,5);     glVertex2f(4,6);     glVertex2f(6,6);     glVertex2f(6,2);     glVertex2f(9,2);     glVertex2f(9,4);     glVertex2f(8,4);     glVertex2f(8,7);     glVertex2f(9,6);     glVertex2f(11,5);     glVertex2f(13,5);     glVertex2f(15,6);     glVertex2f(16,7);   ...

Código Darth Maul Diana Vargas

Imagen
#include <windows.h> #include <math.h> #ifdef _APPLE_ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif #include <stdlib.h> void dibujardarthmaul(void){     glClear(GL_COLOR_BUFFER_BIT);     //BELT     glBegin(GL_POLYGON);     glColor3f(0.5,0.5,0.5);     glVertex2f(0,1);     glVertex2f(1,1);     glVertex2f(1,0);     glVertex2f(3,0);     glVertex2f(3,-1);     glVertex2f(-2,-1);     glVertex2f(-2,0);     glVertex2f(0,0);     glVertex2f(0,1);     glEnd();     //LIGHTSABER     glBegin(GL_QUADS);     glColor3f(1,0,0);     glVertex2f(-8,0);     glVertex2f(-8,1);     glVertex2f(0,1);     glVertex2f(0,0);     glVertex2f(1,1);     glVertex2f(9,1);     glVertex2f(9,0);     glVertex...

Código Gato Israel González

Imagen
/*  * GLUT Shapes Demo  *  * Written by Nigel Stewart November 2003  *  * This program is test harness for the sphere, cone  * and torus shapes in GLUT.  *  * Spinning wireframe and smooth shaded shapes are  * displayed until the ESC or q key is pressed.  The  * number of geometry stacks and slices can be adjusted  * using the + and - keys.  */ #include <windows.h> #include <C:\GLUT\include\GL\glut.h> #include <stdlib.h> float r,g,b; void display(void) {     glClear(GL_COLOR_BUFFER_BIT);     //CUERPO     glColor3f(0,0,0);//COLOR     glBegin(GL_LINE_LOOP);     glVertex2f(1,2);     glVertex2f(5,2);     glVertex2f(5,4);     glVertex2f(3,4);     glVertex2f(3,5);     glVertex2f(4,6);     glVertex2f(6,6);     glVertex2f(6,2);     glVertex2f(9,2); ...

Código James Hetfield Israel González

Imagen
/*  * GLUT Shapes Demo  *  * Written by Nigel Stewart November 2003  *  * This program is test harness for the sphere, cone  * and torus shapes in GLUT.  *  * Spinning wireframe and smooth shaded shapes are  * displayed until the ESC or q key is pressed.  The  * number of geometry stacks and slices can be adjusted  * using the + and - keys.  */ #include <windows.h> #include <C:\GLUT\include\GL\glut.h> #include <stdlib.h> #include <math.h> float r,g,b; float radio = 3; float PI = 3.14; float dx, dy; void dibujaJamesHetfield(void){     glClear(GL_COLOR_BUFFER_BIT);     glBegin(GL_QUADS);     //CABELLO 1     glColor3f(1, 1, 0);     glVertex2f(4,29);     glVertex2f(4,13);     glVertex2f(18,13);     glVertex2f(18,29);     //CABELLO 2     //glBegin(GL_QUADS);   ...