Created
March 2, 2010 08:57
-
-
Save dharmatech/319363 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import (rnrs) | |
(gl) | |
(glut) | |
(agave glu) | |
(agave glamour window) | |
(agave glamour misc)) | |
(initialize-glut) | |
(window (size 250 250) | |
(title "Hello") | |
(reshape (width height) | |
(lambda (w h) | |
(glLoadIdentity) | |
(glOrtho 0.0 1.0 0.0 1.0 -1.0 1.0)))) | |
(buffered-display-procedure | |
(lambda () | |
(background 0.0) | |
(glColor3d 1.0 1.0 1.0) | |
(gl-begin GL_POLYGON | |
(glVertex3d 0.25 0.25 0.0) | |
(glVertex3d 0.75 0.25 0.0) | |
(glVertex3d 0.75 0.75 0.0) | |
(glVertex3d 0.25 0.75 0.0)))) | |
(glutMainLoop) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment