Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include<GL/glut.h>
  2. #define v glVertex2d
  3. #define r(w,x,y,z) v(w,x);v(w,z);v(y,z);v(y,x);
  4. void d(){glScaled(1/16.0f,1/16.0f,1);
  5. glBegin(GL_QUADS);
  6. glColor3f(1,0,0);
  7. r(-16,-16,16,16)glColor3f(1,1,1);
  8. r(-3,-10,3,10)r(-10,-3,10,3)glEnd();
  9. glFlush();}
  10. int main(int c,char**a){glutInit(&c,a);
  11. glutInitWindowSize(320,320);
  12. glutCreateWindow("");
  13. glutDisplayFunc(d);
  14. glutMainLoop();
  15. return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement