Mercurial > fife-parpg
comparison engine/core/video/devicecaps.h @ 637:3822b30fd98c
* Added the ability to query some more details from the video device including the total video memory available.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 06 Oct 2010 21:37:46 +0000 |
parents | f7863bfa92cd |
children | 685d250f2c2d |
comparison
equal
deleted
inserted
replaced
636:f7863bfa92cd | 637:3822b30fd98c |
---|---|
98 */ | 98 */ |
99 ~DeviceCaps(); | 99 ~DeviceCaps(); |
100 | 100 |
101 void fillDeviceCaps(); | 101 void fillDeviceCaps(); |
102 std::vector<ScreenMode> getSupportedScreenModes() const { return m_screenModes; }; | 102 std::vector<ScreenMode> getSupportedScreenModes() const { return m_screenModes; }; |
103 | |
104 /** Returns the name of the current video driver. | |
105 */ | |
103 std::string getDriverName() const { return m_driverName; }; | 106 std::string getDriverName() const { return m_driverName; }; |
107 | |
108 /** Is it possible to create hardware surfaces ? | |
109 */ | |
110 bool isHwSurfaceAvail() const { return m_hwAvailable; }; | |
111 | |
112 /** Is there a window manager available ? | |
113 */ | |
114 bool isWindowManagerAvail() const { return m_wmAvailable;} ; | |
115 | |
116 /** Are hardware to hardware blits accelerated ? | |
117 */ | |
118 bool isHwBlitAccel() const { return m_hwBlitAccel; }; | |
119 | |
120 /** Are hardware to hardware colorkey blits accelerated ? | |
121 */ | |
122 bool isHwColorkeyBlitAccel() const { return m_hwCCBlitAccel; }; | |
123 | |
124 /** Are hardware to hardware alpha blits accelerated ? | |
125 */ | |
126 bool isHwAlphaBlitAccel() const { return m_hwToHwAlphaBlitAccel; }; | |
127 | |
128 /** Are software to hardware blits accelerated ? | |
129 */ | |
130 bool isSwToHwBlitAccel() const { return m_swToHwBlitAccel; }; | |
131 | |
132 /** Are software to hardware colorkey blits accelerated ? | |
133 */ | |
134 bool isSwToHwColorkeyBlitAccel() const { return m_swToHwCCBlistAccel; }; | |
135 | |
136 /** Are software to hardware alpha blits accelerated ? | |
137 */ | |
138 bool isSwToHwAlphaBlitAccel() const { return m_swToHwAlphaBlitAccel; }; | |
139 | |
140 /** Are color fills accelerated ? | |
141 */ | |
142 bool isBlitFillAccel() const { return m_BlitFillAccel; }; | |
143 | |
144 /** Total amount of video memory in Kilobytes, only valid if hardware sufaces are available. | |
145 */ | |
146 uint32_t getVideoMemory() const { return m_videoMem; }; | |
104 | 147 |
105 private: | 148 private: |
106 std::vector<ScreenMode> m_screenModes; | 149 std::vector<ScreenMode> m_screenModes; |
107 std::string m_driverName; | 150 std::string m_driverName; |
108 | 151 |
152 bool m_hwAvailable; | |
153 bool m_wmAvailable; | |
154 bool m_hwBlitAccel; | |
155 bool m_hwCCBlitAccel; | |
156 bool m_hwToHwAlphaBlitAccel; | |
157 bool m_swToHwBlitAccel; | |
158 bool m_swToHwCCBlistAccel; | |
159 bool m_swToHwAlphaBlitAccel; | |
160 bool m_BlitFillAccel; | |
161 | |
162 uint32_t m_videoMem; | |
163 | |
109 }; //DeviceCaps | 164 }; //DeviceCaps |
110 } | 165 } |
111 | 166 |
112 #endif //FIFE_DEVICECAPS_H | 167 #endif //FIFE_DEVICECAPS_H |