Re: [racket-users] Re: Retina display for OpenGL

2019-08-14 Thread Thomas Dickerson
It seems like the issue here is not with the OpenGL setup, but with figuring out whether or not the draw context passed to a snip supports high-resolution drawing. Presumably the answer is "yes" somewhere in the pipeline, since the font rendering in the REPL doesn't look noticeably worse than th

Re: [racket-users] Re: Retina display for OpenGL

2019-08-06 Thread Kshitij Sachan
It looks like `get-gl-client-size` is meant for canvas objects. Is there a parallel function or any other way to get high resolution snips? On Saturday, August 3, 2019 at 1:44:10 PM UTC-4, Jay McCarthy wrote: > > There's two steps to using the hires mode on OS X. > > First, you need the OpenGL c

Re: [racket-users] Re: Retina display for OpenGL

2019-08-03 Thread Jay McCarthy
There's two steps to using the hires mode on OS X. First, you need the OpenGL configuration to be in hires-mode. Second, you need to set the viewport in your OpenGL code to the result of `get-gl-client-size`, not `get-scaled-client-size` or `get-client-size`, which are all very similarly sounding

[racket-users] Re: Retina display for OpenGL

2019-08-01 Thread 'Mark Warren' via Racket Users
That's a shame, I'm afraid I'm out of ideas then. Hopefully someone else will know. On Thursday, 1 August 2019 14:36:07 UTC+1, Kshitij Sachan wrote: > > I've set up an OpenGL context that is displayed in a snip (I chose a snip > because I want to be able to move the camera around and generally r

[racket-users] Re: Retina display for OpenGL

2019-08-01 Thread Kshitij Sachan
That looked so promising! Unfortunately I just tried it, and nothing changed. :( On Thursday, August 1, 2019 at 10:02:35 AM UTC-4, Mark Warren wrote: > > I've never used this before so I may be completely wrong, but you can > supply gl-config% to the make-gl-bitmap and there is a method on it >

[racket-users] Re: Retina display for OpenGL

2019-08-01 Thread 'Mark Warren' via Racket Users
I've never used this before so I may be completely wrong, but you can supply gl-config% to the make-gl-bitmap and there is a method on it (send a-gl-config set-hir

[racket-users] Re: Retina display for OpenGL

2019-08-01 Thread Kshitij Sachan
Here is some more information about how I get the OpenGL context. First, I make a bitmap using `make-gl-bitmap`. Then, I make a bitmap-dc% object that contains my glbitmap and get its gl-context% object using `get-gl-context`. On Thursday, August 1, 2019 at 9:36:07 AM UTC-4, Kshitij Sachan wrot