summaryrefslogtreecommitdiffstats
path: root/src/graphics/core/material.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-08-12 19:28:22 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-08-12 19:28:22 +0200
commit45a5e1e865ec02892054080e1fc0b7e7c463e9d3 (patch)
tree7cbeeb13b077c677f170595e53fab48e8699cae7 /src/graphics/core/material.h
parentb4b74c30e9aa93ae736db73df5cb0c5d508ec6ed (diff)
downloadcolobot-45a5e1e865ec02892054080e1fc0b7e7c463e9d3.tar.gz
colobot-45a5e1e865ec02892054080e1fc0b7e7c463e9d3.tar.bz2
colobot-45a5e1e865ec02892054080e1fc0b7e7c463e9d3.zip
Object handling in CEngine
- finished rewriting CEngine object, shadow, etc. handling - refactored texture code - added new log levels
Diffstat (limited to 'src/graphics/core/material.h')
-rw-r--r--src/graphics/core/material.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/graphics/core/material.h b/src/graphics/core/material.h
index eb73c50..156ff36 100644
--- a/src/graphics/core/material.h
+++ b/src/graphics/core/material.h
@@ -45,6 +45,16 @@ struct Material
Gfx::Color ambient;
//! Specular color
Gfx::Color specular;
+
+ bool operator==(const Gfx::Material &mat) const
+ {
+ return diffuse == mat.diffuse && ambient == mat.ambient && specular == mat.specular;
+ }
+
+ bool operator!=(const Gfx::Material &mat) const
+ {
+ return ! operator==(mat);
+ }
};
}; // namespace Gfx