Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(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
You can’t perform that action at this time.