Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<windows.h>
- #include<GL/glut.h>
- #include <math.h>
- #include "funciones.h"
- int altoVentana = 600;
- int anchoVentana = 800;
- void display(void){
- glClear(GL_COLOR_BUFFER_BIT);
- dibujaBeatsLogo(200, 0, 150);
- dibujaCereza(300, 200, 20);
- dibujaEscudoCapitanAmerica(-200, 0, 150);
- glFlush();
- }
- int main(int argc, char **argv){
- glutInit(&argc, argv);
- glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
- glutInitWindowPosition(10, 10);
- glutInitWindowSize(anchoVentana, altoVentana);
- glutCreateWindow("Graficación");
- glClearColor(1 , 1 , 1, 0);
- gluOrtho2D(-anchoVentana/2, anchoVentana/2, -altoVentana/2, altoVentana/2);
- glutDisplayFunc(display);
- glutMainLoop();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement