goat3d

view src/node.cc @ 29:3d669155709d

- switched the unix build to use the internal vmath/anim as well - fixed a memory corruption issue which was caused by including the system-wide installed version of the anim.h header file - started the ass2goat assimp->goat3d converter
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 29 Sep 2013 21:53:03 +0300
parents 2918358f5e6d
children 498ca7ac7047
line source
1 #include <algorithm>
2 #include <string.h>
3 #include "node.h"
5 Node::Node()
6 {
7 obj = 0;
8 }
10 void Node::set_object(Object *obj)
11 {
12 this->obj = obj;
13 }
15 Object *Node::get_object()
16 {
17 return obj;
18 }
20 const Object *Node::get_object() const
21 {
22 return obj;
23 }
25 void delete_node_tree(Node *n)
26 {
27 for(int i=0; i<n->get_children_count(); i++) {
28 delete_node_tree((Node*)n->get_child(i));
29 }
30 delete n;
31 }