Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<GL/glut.h>
- #define v glVertex2d
- #define r(w,x,y,z) v(w,x);v(w,z);v(y,z);v(y,x);
- void d(){glScaled(1/16.0f,1/16.0f,1);
- glBegin(GL_QUADS);
- glColor3f(1,0,0);
- r(-16,-16,16,16)glColor3f(1,1,1);
- r(-3,-10,3,10)r(-10,-3,10,3)glEnd();
- glFlush();}
- int main(int c,char**a){glutInit(&c,a);
- glutInitWindowSize(320,320);
- glutCreateWindow("");
- glutDisplayFunc(d);
- glutMainLoop();
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement