comparison engine/core/video/video.i @ 425:ad7969d9460b

A client can now specify a global color key to be used with all images. The default color key is (255,0,255) in RGB format. Also the client can enable/disable the color key feature by using the setColorKeyEnabled function in the EngineSettings class. By default the color key feature is disabled. fixes[t:451]
author vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 20 Feb 2010 19:11:01 +0000
parents a8bb57884723
children ad1f09d954f9
comparison
equal deleted inserted replaced
424:e29fbf84cb41 425:ad7969d9460b
159 void popClipArea(); 159 void popClipArea();
160 const Rect& getClipArea() const; 160 const Rect& getClipArea() const;
161 void setAlphaOptimizerEnabled(bool enabled); 161 void setAlphaOptimizerEnabled(bool enabled);
162 bool isAlphaOptimizerEnabled(); 162 bool isAlphaOptimizerEnabled();
163 void saveImage(const std::string& filename); 163 void saveImage(const std::string& filename);
164 void setColorKeyEnabled(bool colorkeyenable);
165 bool isColorKeyEnabled() const;
166 void setColorKey(const SDL_Color& colorkey);
167 const SDL_Color& getColorKey() const;
164 }; 168 };
165 169
166 enum MouseCursorType { 170 enum MouseCursorType {
167 CURSOR_NONE, 171 CURSOR_NONE,
168 CURSOR_NATIVE, 172 CURSOR_NATIVE,