[plt-scheme] OpenGL and GLUT
Attached are three sample programs, all direct translations of GLUT C
code to PLT Scheme.
The first (teapot.ss) is the Newell teapot, originally translated to PLT
Scheme by Neil van Dyke, trivially updated to use contemporary PLT
bindings by me. Compare this against the teapot.c in Mesa GLUT, e.g.
http://svn.saurik.com/repos/menes/trunk/cs280-f06/teapot.c
The second (rbex91.ss) is a translation of example program 9-1 from the
OpenGL Red Book. Compare it against
http://www.opengl.org/resources/code/samples/redbook/texsub.c
The third (molehill.ss) is a translation of the "really, really shiny
nurbs/evaluators example" from SGI's GLUT examples repository. (Unlike
the other two examples, you won't be able to run this sample yourself,
as it depends on NURBS support that never made into the official
sgl/gl.ss.) Compare it against
http://www.opengl.org/resources/code/samples/glut_examples/examples/molehill.c
I hope these help.
Ben
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: teapot.ss
URL: <http://lists.racket-lang.org/users/archive/attachments/20100118/4272caa0/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rbex91.ss
URL: <http://lists.racket-lang.org/users/archive/attachments/20100118/4272caa0/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: molehill.ss
URL: <http://lists.racket-lang.org/users/archive/attachments/20100118/4272caa0/attachment-0002.ksh>