Advertisement
Guest User

Tarea 3 de Graficación [openGL]

a guest
Aug 17th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.71 KB | None | 0 0
  1. #include<windows.h>
  2. #include<GL/glut.h>
  3. #include <math.h>
  4. #include "funciones.h"
  5. int altoVentana = 600;
  6. int anchoVentana = 800;
  7.  
  8. void display(void){
  9.   glClear(GL_COLOR_BUFFER_BIT);
  10.     dibujaBeatsLogo(200, 0, 150);
  11.     dibujaCereza(300, 200, 20);
  12.     dibujaEscudoCapitanAmerica(-200, 0, 150);
  13.   glFlush();
  14. }
  15.  
  16. int main(int argc, char **argv){
  17.   glutInit(&argc, argv);
  18.   glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
  19.   glutInitWindowPosition(10, 10);
  20.   glutInitWindowSize(anchoVentana, altoVentana);
  21.   glutCreateWindow("Graficación");
  22.   glClearColor(1 , 1 , 1, 0);
  23.   gluOrtho2D(-anchoVentana/2, anchoVentana/2, -altoVentana/2, altoVentana/2);
  24.   glutDisplayFunc(display);
  25.   glutMainLoop();
  26.   return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement