All pastes #122270 Raw Edit

gl

public cpp v1 · immutable
·published 2006-08-08 15:53 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,0);	glVertex3f(0,10,0);	glVertex3f(10,10,0);	glVertex3f(10,0,0);	glEnd();	glPushMatrix();	glutSwapBuffers();	glRotatef(90,0,1);	glScalef(10,0,2);	glPopMatrix();}void main (int argc, char **argv){	glutInit(&argc,argv);	glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);	glutInitWindowSize(500, 500);	glutInitWindowPosition(100, 100);	glutCreateWindow("Window.");	glMatrixMode(GL_MODELVIEW);	glOrtho(-100, 100, -100, 100, -50, 50);	glClearColor(1,1,1,1);	glutDisplayFunc(display);	glutMainLoop();	return;}