On Thu, Mar 25, 2010 at 5:35 PM, Gary Herron <[email protected]>wrote:

>
> Here's a bit more info:
>
> On XWindows (Linux/Unix and perhaps Macs) the appropriate calls are
> DisplayWidthMM and DisplayHeightMM, and it looks like pyglet exposes those
> calls.
>
> On Windows the appropriate call seems to be GetDeviceCaps, but I've not
> found any evidence that pyglet exposes that function.
>
> Anybody know anything more about this?


The relevant API on Mac would be CGDisplayScreenSize().

http://developer.apple.com/Mac/library/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/Reference/reference.html#//apple_ref/c/func/CGDisplayScreenSize


However, keep in mind that on any platform, this information will only be
accurate (or even available) if your monitor is new enough to support EDIC.

http://en.wikipedia.org/wiki/Extended_display_identification_data

-- 
Tristam MacDonald
http://swiftcoder.wordpress.com/

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to