summaryrefslogtreecommitdiffstats
path: root/src/graphics/common/material.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/common/material.h')
-rw-r--r--src/graphics/common/material.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/graphics/common/material.h b/src/graphics/common/material.h
index d6e2b41..47f1a0d 100644
--- a/src/graphics/common/material.h
+++ b/src/graphics/common/material.h
@@ -21,6 +21,23 @@
namespace Gfx {
-// TODO struct Material
+/**
+ * \struct Material Material of a surface
+ *
+ * This structure was created as analog to DirectX's D3DMATERIAL.
+ *
+ * It contains values of 3 material colors: diffuse, ambient and specular.
+ * In D3DMATERIAL there are other fields, but they are not used
+ * by the graphics engine.
+ */
+struct Material
+{
+ //! Diffuse color
+ Gfx::Color diffuse;
+ //! Ambient color
+ Gfx::Color ambient;
+ //! Specular color
+ Gfx::Color specular;
+};
}; // namespace Gfx