Sistema Solar en GLUT C++

Trabajo de Practica 4 PASO 1: Código: //PASO 1: //ORIGINAL LIBRERIA #include #ifdef __APPLE__ #include #else #include #

Views 25 Downloads 0 File size 610KB

Report DMCA / Copyright

DOWNLOAD FILE

Recommend stories

Citation preview

Trabajo de Practica 4 PASO 1:

Código: //PASO 1: //ORIGINAL LIBRERIA #include #ifdef __APPLE__ #include #else #include #endif //ACTUAL LIBRERIA #include

int rad = 100; double ang = 0, a = 0, b = 0, c = 0, d = 0, e = 0, f = 0; void inicializa(void) { glClearColor(0.0, 0.0, 0.0, 0.0); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0.0, 1000.0, 0.0, 1000.0);// el ancho y largo de nuestra pantalla } void circulo(int x, int y, int radio) { int angulo=0; glBegin(GL_TRIANGLE_FAN); glVertex2f(x,y); for(angulo=0;angulo