Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2014-07-06 20:55:11 +0000
committerStijn Buys <ingar@osirion.org>2014-07-06 20:55:11 +0000
commit51175c2ffb55ed157e1f609e02e533f319a3717d (patch)
treece6824796fe0469496cfa0482dcdf196e892b381 /src/model/layer.cc
parent4d2d157ed09bb066686f83803abd90809fe20b82 (diff)
Added initial definitions for material layers.
Diffstat (limited to 'src/model/layer.cc')
-rw-r--r--src/model/layer.cc42
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;
+}
+
+}
+