CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 20:17:44 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=af97c692851239c0a83fc93345ebaf0eac8daa6c7f29e8af16f3b84bc494c12da%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22PF_Qv3q9JBb2DwsuILWAUPlHb8oOYAiP%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d10aea2da6741b-BLR
Cheese Board - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GL/gl.h>
- #include <GL/glu.h>
- #include <GL/glut.h>
- #include <cmath>
- #define white 1
- #define black 0
- void reshape(int w, int h)
- {
- glClearColor(0.0, 0.5, 0.0, 0.0f);
- glViewport(0, 0 ,w, h);
- glMatrixMode(GL_PROJECTION);
- glLoadIdentity();
- float h2w= (float)h / (float) w;
- float w2h= (float)w / (float) h;
- if(w<=h)
- {
- gluOrtho2D(0.0, 80.0, 0.0, 80.0*h2w);
- }
- else
- {
- gluOrtho2D(0.0*w2h, 80.0, 0.0, 80.0);
- }
- glMatrixMode(GL_MODELVIEW);
- }
- //void init()
- //{
- // glClearColor(0.0, 0.5, 0.0, 0.0f);
- // glMatrixMode(GL_PROJECTION);
- // glLoadIdentity();
- // gluOrtho2D(0.0, 80.0, 0.0, 80.0 );
- // glMatrixMode(GL_MODELVIEW);
- //}
- void drawboard()
- {
- bool state = white;
- for (int i = 0; i<=80; i+=10)
- {
- for (int j = 0; j<=80; j+=10)
- {
- if (state==white)
- {
- glColor3ub(255,255,255);
- state = black;
- }
- else
- {
- glColor3ub(0,0,0);
- state = white;
- }
- glRecti(i,j, i+10,j+10);
- }
- }
- }
- void display()
- {
- glClear(GL_COLOR_BUFFER_BIT);
- glLoadIdentity();
- drawboard();
- glFlush();
- }
- int main(int argc, char** argv)
- {
- glutInit(&argc, argv);
- glutInitDisplayMode(GLUT_RGB);
- glutInitWindowPosition(300,200);
- glutInitWindowSize(500,500);
- glutCreateWindow("Cheese Board");
- glutDisplayFunc(display);
- glutReshapeFunc(reshape);
- // init();
- glutMainLoop();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
π Instant BTC Profit Method β
Working
JavaScript | 6 sec ago | 0.24 KB
-
π MAKE $2500 IN 15 MIN β
Working
JavaScript | 16 sec ago | 0.24 KB
-
ββ
Swapzone Glitch β
Working ββ E
JavaScript | 25 sec ago | 0.25 KB
-
π΅ Make 3000$ in 20 minutes π΅
JavaScript | 26 sec ago | 0.24 KB
-
β
Make $2500 in 20 minutesβββ X
JavaScript | 34 sec ago | 0.25 KB
-
π Swapzone +37% glitch
JavaScript | 35 sec ago | 0.24 KB
-
π Swapzone +37% glitch β O
JavaScript | 43 sec ago | 0.25 KB
-
π Exchange profit method
JavaScript | 45 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand