Re: [racket-users] mode-lambda and the gl-backend

2016-12-28 Thread Jens Axel Søgaard
Thanks for the recommendation! /Jens Axel 2016-12-28 19:21 GMT+01:00 David Vanderson : > On Wed, Dec 28, 2016 at 11:40 AM, Jens Axel Søgaard > wrote: > >> Below is what works for me (this is just for the archives). >> When run the program prints this warning/info which I assume it is ok to >

Re: [racket-users] mode-lambda and the gl-backend

2016-12-28 Thread David Vanderson
On Wed, Dec 28, 2016 at 11:40 AM, Jens Axel Søgaard wrote: > Below is what works for me (this is just for the archives). > When run the program prints this warning/info which I assume it is ok to > ignore. > > GL context changed > You are using OpenGL '(4 1) with gl-backend-version of 3.3

Re: [racket-users] mode-lambda and the gl-backend

2016-12-28 Thread Jens Axel Søgaard
Below is what works for me (this is just for the archives). When run the program prints this warning/info which I assume it is ok to ignore. GL context changed You are using OpenGL '(4 1) with gl-backend-version of 3.3 '#(#(400.0 400.0) #(0.945 0.945) #(378.0 378.0) #(378.0 378.0) #(40

Re: [racket-users] mode-lambda and the gl-backend

2016-12-28 Thread Jay McCarthy
On Wed, Dec 28, 2016 at 5:57 AM, Jens Axel Søgaard wrote: > That example is quite involved. It doesn't show how to get things going > without using chaos. I suggest looking at lux/chaos/gui for how to get a canvas. > If I use (require mode-lambda/backend/gl) instead of (require > mode-lambda/bac

Re: [racket-users] mode-lambda and the gl-backend

2016-12-28 Thread Jens Axel Søgaard
That example is quite involved. It doesn't show how to get things going without using chaos. If I use (require mode-lambda/backend/gl) instead of (require mode-lambda/backend/software) and use a bitmap with gl backing like this: (define draw (rendering-states->draw lc (list fish-sprite lanter

Re: [racket-users] mode-lambda and the gl-backend

2016-12-27 Thread Jay McCarthy
What you have is fine, but you need to give it a DC where get-gl-context doesn't return false. (Such as by making a canvas with the 'gl style.) In addition, you do NOT want a legacy context. I recommend looking at the example code: https://github.com/jeapostrophe/mode-lambda/blob/master/mode-lamb