iDevGames Forums
Obtaining Supported Screen Resolutions - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Obtaining Supported Screen Resolutions (/thread-5050.html)



Obtaining Supported Screen Resolutions - Volte - Sep 10, 2005 10:59 PM

Is there a C/++ function for obtaining the allowed screen resolutions of the client computer? (Return Int would be nice)


Obtaining Supported Screen Resolutions - Volte - Sep 11, 2005 01:20 AM

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/index.php?gameglut


Obtaining Supported Screen Resolutions - OneSadCookie - Sep 11, 2005 01:23 AM

see /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h


Obtaining Supported Screen Resolutions - Fenris - Sep 11, 2005 01:28 AM

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.


Obtaining Supported Screen Resolutions - Volte - Sep 11, 2005 03:05 AM

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