Irrlicht 3D Engine
IVideoModeList.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __IRR_I_VIDEO_MODE_LIST_H_INCLUDED__
6 #define __IRR_I_VIDEO_MODE_LIST_H_INCLUDED__
7 
8 #include "IReferenceCounted.h"
9 #include "dimension2d.h"
10 
11 namespace irr
12 {
13 namespace video
14 {
15 
17 
23  class IVideoModeList : public virtual IReferenceCounted
24  {
25  public:
26 
28 
29  virtual s32 getVideoModeCount() const = 0;
30 
32 
34  virtual core::dimension2d<u32> getVideoModeResolution(s32 modeNumber) const = 0;
35 
37 
41  virtual core::dimension2d<u32> getVideoModeResolution(const core::dimension2d<u32>& minSize, const core::dimension2d<u32>& maxSize) const = 0;
42 
44 
46  virtual s32 getVideoModeDepth(s32 modeNumber) const = 0;
47 
49 
50  virtual const core::dimension2d<u32>& getDesktopResolution() const = 0;
51 
53 
54  virtual s32 getDesktopDepth() const = 0;
55  };
56 
57 } // end namespace video
58 } // end namespace irr
59 
60 
61 #endif
62 
virtual const core::dimension2d< u32 > & getDesktopResolution() const =0
Get current desktop screen resolution.
A list of all available video modes.
virtual core::dimension2d< u32 > getVideoModeResolution(s32 modeNumber) const =0
Get the screen size of a video mode in pixels.
virtual s32 getVideoModeCount() const =0
Gets amount of video modes in the list.
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:12
virtual s32 getDesktopDepth() const =0
Get the pixel depth of a video mode in bits.
signed int s32
32 bit signed variable.
Definition: irrTypes.h:66
Base class of most objects of the Irrlicht Engine.
virtual s32 getVideoModeDepth(s32 modeNumber) const =0
Get the pixel depth of a video mode in bits.