All pastes #122226 Raw Edit

Stuff

public cpp v1 · immutable
·published 2006-08-08 15:20 UTC
rendered paste body
#include <iostream>#include <GL/glut.h>using namespace std;void display(){	glClear(GL_COLOR_BUFFER_BIT);	glBegin(GL_QUADS);	glVertex3f(0,0,1);	glVertex3f(0,10,1);	glVertex3f(10,10,1);	glVertex3f(10,0,1);	glRotatef(10,50,0)	glEnd();	glutSwapBuffers();}void main (int argc, char **argv){	glutInit(&argc,argv);	glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);	glutInitWindowSize(500, 500);	glutInitWindowPosition(100, 100);	glutCreateWindow("Window.");	glOrtho(-100, 100, -100, 100, -50, 50);	glClearColor(1,1,1,1);	glutDisplayFunc(display);	glutMainLoop();	return;}