erebus
view liberebus/src/object.cc @ 6:bb006fb96f1b
forgot to add two files
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 24 May 2014 02:22:14 +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 }