Skip to content

Instantly share code, notes, and snippets.

@dharmatech
Created March 2, 2010 08:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dharmatech/319363 to your computer and use it in GitHub Desktop.
Save dharmatech/319363 to your computer and use it in GitHub Desktop.
(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