Feature Request: Dynamic Video Mode Enumeration

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
rooly
Posts: 224
Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:

Feature Request: Dynamic Video Mode Enumeration

Post by rooly »

Currently, It is impossible in irrlicht to find out what video modes are supported by a machine explicitly. The only available data in getVideoModeList are things pertaining to depth and resolution. There is no information available as to the Device Type.

Feature Request:

add irr::video::E_DRIVER_TYPE irr::video::IVideoList::getVideoModeType( u32 modeNumber ) const;
and irr::video::E_DRIVER_TYPE irr::video::CVideoList::getVideoModeType( u32 modeNumber )const;
and irr::video::E_DRIVER_TYPE irr::video::CVideoList::SVideoList::DriverType;

as well as explicitly declaring the values for irr::video::E_DRIVER_TYPE enumerations.

*EDIT*
Last edited by rooly on Sat Apr 25, 2009 12:44 am, edited 1 time in total.
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post by Dark_Kilauea »

Might be possible to return an array of enumerations based on what driver modes are available, since it is very common for both OpenGL and DirectX to be valid.
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

What is a device type?
rooly
Posts: 224
Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:

Post by rooly »

woops, total mistype, E_DRIVER_TYPE
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You mean if opengl or d3d is supported?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I've added a static device method to check if some driver is compiled into the engine. Maybe this fulfills the request, otherwise please be more specific.
rooly
Posts: 224
Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:

Post by rooly »

thinking about it real hard, i realize that getVideoModeList is doing exactly what its meant to do.

The problem is the actual explanation of what it does:
"Gets a list with all video modes available."
for getVideoModeList()

I suppose changing the documentation to more obviously
"Gets a list of desktop resolutions and bit depths available to the engine and hardware."
would make the use of this operation a bit more obvious.

I apologize, I was asked a question about using this feature, and was misled in interpreting the function's usage.
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, that's what I'd call the video mode, but I can add some more details to the docs. Anway, the new method will stay and can be used to check if some video driver is available :)
Post Reply