diff options
Diffstat (limited to 'src/model/layer.cc')
-rw-r--r-- | src/model/layer.cc | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/model/layer.cc b/src/model/layer.cc new file mode 100644 index 0000000..81faa6c --- /dev/null +++ b/src/model/layer.cc @@ -0,0 +1,42 @@ +/* + model/layer.cc + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ + +#include "model/layer.h" + +namespace model +{ + +Layer::Layer() : + layer_rgbgen(RGBGenIdentity), + layer_color(), + layer_texmap(TexMapNone), + layer_texture_name(), + layer_texture_id(0), + layer_tcgen(TCGenNone) +{ +} + +Layer::~Layer() +{ +} + +void Layer::set_rgbgen(const RGBGen rgbgen) +{ + layer_rgbgen = rgbgen; +} + +void Layer::set_color(const math::Color & color) +{ + layer_color.assign(color); +} + +void Layer::set_tcgen(const TCGen tcgen) +{ + layer_tcgen = tcgen; +} + +} + |