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>2008-04-05 10:52:39 +0000
committerStijn Buys <ingar@osirion.org>2008-04-05 10:52:39 +0000
commit25d2c764443723eb7a3dd5f8bf0b76586c1ff10b (patch)
treeb9cc681a3ff20900b32ce287505d018e0a7ae35f /src/core/entity.cc
parent49e268d1b4244948e49a11612501a743e311fbaf (diff)
Makefile.am updates, math::Axis, improved VertexArray, r_arraysize
Diffstat (limited to 'src/core/entity.cc')
-rw-r--r--src/core/entity.cc33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc
index ebf9723..1e90b2a 100644
--- a/src/core/entity.cc
+++ b/src/core/entity.cc
@@ -335,4 +335,37 @@ void EntityControlable::set_direction(float direction)
}
}
+/*----- EntityGlobe ------------------------------------------------ */
+
+EntityGlobe::EntityGlobe(unsigned int flags) :
+ Entity(flags)
+{
+ entity_texture_id = 0;
+ entity_shape = Sphere;
+}
+
+EntityGlobe::EntityGlobe(std::istream & is) :
+ Entity(is)
+{
+ std::string n;
+ char c;
+ while ( (is.get(c)) && (c != '"'));
+ while ( (is.get(c)) && (c != '"'))
+ n += c;
+ entity_texture = n;
+ n.clear();
+
+}
+
+EntityGlobe::~EntityGlobe()
+{
+}
+
+void EntityGlobe::serialize(std::ostream & os) const
+{
+ Entity::serialize(os);
+ os << " \"" << entity_texture << "\"";
}
+
+}
+