Obtaining Supported Screen Resolutions
Is there a C/++ function for obtaining the allowed screen resolutions of the client computer? (Return Int would be nice)
Alright I think I KINDA figured it out. Still not sure if I can get a list of supported resolutions. Obviously I want to implement a dynamic menu (dynamic depending on what system its being run on) which lists the resolutions the graphics card and the monitor can handle... anyway, here is what I found:
http://www.lighthouse3d.com/opengl/glut/...p?gameglut
http://www.lighthouse3d.com/opengl/glut/...p?gameglut
see /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h
Nope, C/C++ doesn't know anything about hardware. If you want to grab the resolution on a Mac, try looking at CoreGraphics. If you decided to go with SDL, SDL has functions for that too.
Oh... Ok, I just posted something about my misunderstanding as far as SDL vs GLUT. Maybe you could help me answer that: http://www.idevgames.com/forum/showthread.php?p=97152
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Obtaining GPU deviceID for each window/NSScreen in multi-display/multi-GPU app? | dauerbach | 1 | 1,841 |
Oct 8, 2012 11:58 AM Last Post: OneSadCookie |
|
| Obtaining GL Context | nalenb | 10 | 6,129 |
May 21, 2006 01:32 PM Last Post: LongJumper |
|
| Scaling to different Resolutions | blobbo | 10 | 4,180 |
Apr 22, 2005 05:48 PM Last Post: NCarter |
|
| windows getting resized/moved after switching resolutions | aarku | 5 | 4,361 |
Nov 30, 2003 03:56 AM Last Post: aarku |
|

