diff options
Diffstat (limited to 'src/graphics/core/material.h')
-rw-r--r-- | src/graphics/core/material.h | 10 |
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 |