erebus
view liberebus/src/object.cc @ 3:a932848de652
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 28 Apr 2014 15:44:59 +0300 |
parents | 474a0244f57d |
children | e9da2916bc79 |
line source
1 #include "object.h"
3 Object::Object()
4 {
5 name = "<unnamed>";
6 }
8 ObjType Object::get_type() const
9 {
10 return ObjType::null;
11 }
13 void Object::set_name(const char *name)
14 {
15 this->name = name;
16 }
18 const char *Object::get_name() const
19 {
20 return name.c_str();
21 }
23 bool Object::intersect(const Ray &ray, RayHit *hit) const
24 {
25 return false;
26 }