From 45a5e1e865ec02892054080e1fc0b7e7c463e9d3 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sun, 12 Aug 2012 19:28:22 +0200 Subject: Object handling in CEngine - finished rewriting CEngine object, shadow, etc. handling - refactored texture code - added new log levels --- src/graphics/core/material.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/graphics/core/material.h') 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 -- cgit v1.2.3-1-g7c22