diff 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
line wrap: on
line diff
--- a/engine/core/video/video.i	Fri Feb 12 22:00:58 2010 +0000
+++ b/engine/core/video/video.i	Sat Feb 20 19:11:01 2010 +0000
@@ -161,6 +161,10 @@
 		void setAlphaOptimizerEnabled(bool enabled);
 		bool isAlphaOptimizerEnabled();
 		void saveImage(const std::string& filename);
+		void setColorKeyEnabled(bool colorkeyenable);
+		bool isColorKeyEnabled() const;
+		void setColorKey(const SDL_Color& colorkey);
+		const SDL_Color& getColorKey() const;
 	};
 	
 	enum MouseCursorType {