[plt-scheme] MrEd/OpenGL

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Sep 3 10:18:48 EDT 2003

At Wed, 3 Sep 2003 09:08:53 -0400 (EDT), Ryan Jarvis wrote:
> However, when I try to execute I get the error
> instantiate: unused initialization arguments: (paint_callback etc. etc for
> instantiated my-canvas%

It should be `paint-callback' with a hyphen instead of an underscore.

> And
> how come I can just type
> (send a-canvas with-gl-context draw-init)
> When I do that, I seem to get my (draw-points) working fine but I also get
> other random garbage/pixels on the screen.

I'm not enough of a GL expert to know about this one. Is the initial
state of a GL context defined, or do you have to explicitly clear it?
(Maybe your code already clears the context...)


Posted on the users mailing list.