rcpp_framework/core/nodes/node_tree.cpp

30 lines
396 B
C++
Raw Normal View History

#include "node_tree.h"
2022-01-07 19:28:16 +01:00
#include "node.h"
Node *NodeTree::get_root() {
return _root_node;
}
void NodeTree::set_root(Node *root) {
if (_root_node) {
_root_node->set_tree(nullptr);
}
_root_node = root;
if (_root_node) {
_root_node->set_tree(this);
}
}
void NodeTree::send_update(float delta) {
//todo
}
NodeTree::NodeTree() : Object() {
}
NodeTree::~NodeTree() {
}