comparison engine/core/controller/engine.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 9d94f4676d17
children 79678719d569
comparison
equal deleted inserted replaced
424:e29fbf84cb41 425:ad7969d9460b
72 unsigned int getImageChunkingSize(); 72 unsigned int getImageChunkingSize();
73 void setWindowTitle(const std::string& title); 73 void setWindowTitle(const std::string& title);
74 std::string getWindowTitle() const; 74 std::string getWindowTitle() const;
75 void setWindowIcon(const std::string& icon); 75 void setWindowIcon(const std::string& icon);
76 std::string getWindowIcon() const; 76 std::string getWindowIcon() const;
77 void setColorKeyEnabled(bool colorkeyenable);
78 bool isColorKeyEnabled() const;
79 void setColorKey(Uint8 r, Uint8 g, Uint8 b);
80 const SDL_Color& getColorKey() const;
77 81
78 private: 82 private:
79 EngineSettings(); 83 EngineSettings();
80 }; 84 };
81 85