arsa  2.7
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 
19  class IVideoModeList : public virtual IReferenceCounted
20  {
21  public:
22 
24 
25  virtual s32 getVideoModeCount() const = 0;
26 
28 
30  virtual core::dimension2d<u32> getVideoModeResolution(s32 modeNumber) const = 0;
31 
33 
37  virtual core::dimension2d<u32> getVideoModeResolution(const core::dimension2d<u32>& minSize, const core::dimension2d<u32>& maxSize) const = 0;
38 
40 
42  virtual s32 getVideoModeDepth(s32 modeNumber) const = 0;
43 
45 
46  virtual const core::dimension2d<u32>& getDesktopResolution() const = 0;
47 
49 
50  virtual s32 getDesktopDepth() const = 0;
51  };
52 
53 } // end namespace video
54 } // end namespace irr
55 
56 
57 #endif
58 
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: CARSADPad.h:6
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:70
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.