diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-26 19:18:33 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-26 19:18:33 +0200 |
commit | 2fa4d7b0db88abcccbda287af10fc336a8dbb910 (patch) | |
tree | da06fdca6da3b6b310139a8685d3662a5938f71d /src/common/image.h | |
parent | 00acce25d1dc050367c6b85a95dc6c0b4c9f0b18 (diff) | |
download | colobot-2fa4d7b0db88abcccbda287af10fc336a8dbb910.tar.gz colobot-2fa4d7b0db88abcccbda287af10fc336a8dbb910.tar.bz2 colobot-2fa4d7b0db88abcccbda287af10fc336a8dbb910.zip |
Refactored resource and relief loading
- now loading can be from any image format
- added IntColor struct for precise pixel operations
Diffstat (limited to 'src/common/image.h')
-rw-r--r-- | src/common/image.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/image.h b/src/common/image.h index 93c7cab..3391bdb 100644 --- a/src/common/image.h +++ b/src/common/image.h @@ -78,9 +78,15 @@ public: //! Sets the color at given pixel void SetPixel(Math::IntPoint pixel, Gfx::Color color); + //! Sets the precise color at given pixel + void SetPixelInt(Math::IntPoint pixel, Gfx::IntColor color); + //! Returns the color at given pixel Gfx::Color GetPixel(Math::IntPoint pixel); + //! Returns the precise color at given pixel + Gfx::IntColor GetPixelInt(Math::IntPoint pixel); + //! Loads an image from the specified file bool Load(const std::string &fileName); |