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]> 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].
> 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/CAJYbDakfdi_ptCJLAEbt-VbBYZWWTuFT9OKxGS1c6LP4_LT4kg%40mail.gmail.com.

Reply via email to