Obtaining Supported Screen Resolutions

Member
Posts: 89
Joined: 2005.06
Post: #1
Is there a C/++ function for obtaining the allowed screen resolutions of the client computer? (Return Int would be nice)
Quote this message in a reply
Member
Posts: 89
Joined: 2005.06
Post: #2
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
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
see /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #4
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.
Quote this message in a reply
Member
Posts: 89
Joined: 2005.06
Post: #5
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
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Obtaining GPU deviceID for each window/NSScreen in multi-display/multi-GPU app? dauerbach 1 3,494 Oct 8, 2012 11:58 AM
Last Post: OneSadCookie
  Obtaining GL Context nalenb 10 7,410 May 21, 2006 01:32 PM
Last Post: LongJumper
  Scaling to different Resolutions blobbo 10 4,703 Apr 22, 2005 05:48 PM
Last Post: NCarter
  windows getting resized/moved after switching resolutions aarku 5 4,955 Nov 30, 2003 03:56 AM
Last Post: aarku