diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-24 15:41:56 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-24 15:41:56 +0200 |
commit | 3478978c21ddc905ceb01f5ffc9c22bbf19bc288 (patch) | |
tree | b7bdc0fdae264db75dbaef266059f8c680037605 /src/graphics/common/material.h | |
parent | 11c947f212165a28cf13793424b59ff8c9a6ac60 (diff) | |
download | colobot-3478978c21ddc905ceb01f5ffc9c22bbf19bc288.tar.gz colobot-3478978c21ddc905ceb01f5ffc9c22bbf19bc288.tar.bz2 colobot-3478978c21ddc905ceb01f5ffc9c22bbf19bc288.zip |
CApplication and Gfx::CEngine interfaces & other
- added CApplication and Gfx::CEngine interfaces
- added Gfx::Material struct
- added Math::IntPoint struct
- added template for Gfx::CDevice class
- added templates for Gfx::CGLDevice and Gfx::CGLEngine classes
Diffstat (limited to 'src/graphics/common/material.h')
-rw-r--r-- | src/graphics/common/material.h | 19 |
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 |