summaryrefslogtreecommitdiffstats
path: root/src/graphics/core
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-08-10 23:31:42 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-08-10 23:31:42 +0200
commit63257034c946d40fb3ecc73a9ee3dc9d1e0a1e34 (patch)
treeaa1fcf2928e2c9d5f89022242fbe3ff6d7d64bbb /src/graphics/core
parentc3ab23ac9dc02d59180f2f1af5f3aa5b50f9f8d8 (diff)
downloadcolobot-63257034c946d40fb3ecc73a9ee3dc9d1e0a1e34.tar.gz
colobot-63257034c946d40fb3ecc73a9ee3dc9d1e0a1e34.tar.bz2
colobot-63257034c946d40fb3ecc73a9ee3dc9d1e0a1e34.zip
Partial CEngine implementation
- added rewritten implementation for basic modesetting in CEngine - started rewriting proper rendering and object handling in CEngine
Diffstat (limited to 'src/graphics/core')
-rw-r--r--src/graphics/core/color.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/graphics/core/color.h b/src/graphics/core/color.h
index 6973644..0e08de3 100644
--- a/src/graphics/core/color.h
+++ b/src/graphics/core/color.h
@@ -18,7 +18,6 @@
#pragma once
-
#include <sstream>
@@ -66,6 +65,11 @@ struct Color
{
return r == other.r && g == other.g && b == other.b && a == other.a;
}
+
+ inline bool operator!=(const Gfx::Color &other) const
+ {
+ return ! this->operator==(other);
+ }
};
/**