Go to the documentation of this file.00001 #ifndef __NYTRO_VideoDevice_H
00002 #define __NYTRO_VideoDevice_H
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "system/nyCommon.h"
00012
00013 namespace Nytro
00014 {
00015 namespace Graphics
00016 {
00018 class NYTRO_API VideoMode
00019 {
00020 public:
00021
00022 VideoMode();
00023
00025 uint32 m_width,
00027 m_height,
00029 m_bpp,
00031 m_frequency;
00033 bool m_bFullScreen;
00034 };
00035
00037 class NYTRO_API VideoDevice
00038 {
00039 public:
00040
00041 VideoDevice();
00042 virtual ~VideoDevice();
00043
00045 vector<VideoMode>& getVideoModes();
00047 string& getDeviceName();
00049 void setDeviceName( const char* pValue );
00051 void addVideoMode( VideoMode& rVideoMode );
00054 uint32 findVideoMode( uint32 aWidth, uint32 aHeight, uint32 aBpp = 0, uint32 aHz = 0 );
00055
00057 VideoDevice& operator = ( const VideoDevice& rCopy );
00058
00059 private:
00060
00062 vector<VideoMode> m_videoModes;
00064 string m_deviceName;
00065 };
00066 };
00067 };
00068
00069 #endif