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 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 functions. > > -- > Jay McCarthy > Associate Professor @ CS @ UMass Lowell > http://jeapostrophe.github.io > Vincit qui se vincit. > > > -- > Jay McCarthy > Associate Professor @ CS @ UMass Lowell > http://jeapostrophe.github.io > Vincit qui se vincit. > > > On Thu, Aug 1, 2019 at 10:39 AM 'Mark Warren' via Racket Users > <[email protected] <javascript:>> wrote: > > > > 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 > respond to user input). However, I've noticed that the OpenGL context in > Racket looks considerably worse than when I run the same OpenGL code in C++ > (the racket code is actually calling a C library function using the FFI). > >> > >> I believe this is because the Racket snip isn't able to take advantage > of the Retina display on my Mac. Is this the correct reason, and if so, is > there any way to fix this and make the quality better? > > > > -- > > You received this message because you are subscribed to the Google > Groups "Racket Users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] <javascript:>. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/0452ca69-81f7-45e0-9718-3ca95a42ce68%40googlegroups.com. > > > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/e31ae83a-715b-4bd4-bf8e-66ca1b4d3639%40googlegroups.com.

