Bogdanp / racket-gui-easy

Declarative GUIs in Racket.
https://docs.racket-lang.org/gui-easy/index.html
134 stars 18 forks source link

OpenGL example program #46

Closed kengruven closed 11 months ago

kengruven commented 11 months ago

I wanted to draw some simple 3D shapes with racket/gui/easy, and it turned out to be rather non-obvious how to approach this -- both how to handle events, and how to get a canvas where I could issue OpenGL calls (without getting strange X11 errors). An example might help people (including myself-in-the-future) figure this out.

There's still a couple little oddities. Feedback welcome.

Bogdanp commented 11 months ago

Thanks! I pushed another commit to make some style tweaks, but this looks good.