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>2009-08-11 11:49:12 +0000
committerStijn Buys <ingar@osirion.org>2009-08-11 11:49:12 +0000
commit25bcd92706ce2cd6aee24cfb81e9ff2fd7dd4820 (patch)
tree19e71f817ffc36247f4db718454f3634904284b0 /src/model/fragment.cc
parenta2ae048571310e80ba7502f1d81b5dd2eb1e38fa (diff)
misc_model support
Diffstat (limited to 'src/model/fragment.cc')
-rw-r--r--src/model/fragment.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/model/fragment.cc b/src/model/fragment.cc
index 72d8e2a..8c3481c 100644
--- a/src/model/fragment.cc
+++ b/src/model/fragment.cc
@@ -16,6 +16,15 @@ namespace model
Quads: the number of Quads is size/4
*/
+Fragment::Fragment(const Fragment &other)
+{
+ fragment_type = other.fragment_type;
+ fragment_index = other.fragment_index;
+ fragment_structural_size = other.fragment_structural_size;
+ fragment_detail_size = other.fragment_detail_size;
+ fragment_material = other.fragment_material;
+}
+
Fragment::Fragment(Type type, const Material *material)
{
fragment_type = type;
@@ -53,6 +62,8 @@ size_t Fragment::add_vertex(math::Vector3f const & vertex, math::Vector3f const
FragmentGroup::FragmentGroup()
{
group_type = None;
+ group_scale = 1.0f;
+ group_transform = false;
}
FragmentGroup::~FragmentGroup()