summaryrefslogtreecommitdiffstats
path: root/src/graphics/core/material.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/core/material.h')
-rw-r--r--src/graphics/core/material.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/graphics/core/material.h b/src/graphics/core/material.h
index 156ff36..07782d5 100644
--- a/src/graphics/core/material.h
+++ b/src/graphics/core/material.h
@@ -25,6 +25,7 @@
#include "graphics/core/color.h"
+// Graphics module namespace
namespace Gfx {
/**
@@ -40,21 +41,22 @@ namespace Gfx {
struct Material
{
//! Diffuse color
- Gfx::Color diffuse;
+ Color diffuse;
//! Ambient color
- Gfx::Color ambient;
+ Color ambient;
//! Specular color
- Gfx::Color specular;
+ Color specular;
- bool operator==(const Gfx::Material &mat) const
+ bool operator==(const Material &mat) const
{
return diffuse == mat.diffuse && ambient == mat.ambient && specular == mat.specular;
}
- bool operator!=(const Gfx::Material &mat) const
+ bool operator!=(const Material &mat) const
{
return ! operator==(mat);
}
};
-}; // namespace Gfx
+
+} // namespace Gfx