Creating a base toolkit for functions independent from other toolkits

This commit is contained in:
Bruno
2021-04-25 20:09:22 +02:00
parent 129d5445c3
commit 055f5c4c4e
24 changed files with 159 additions and 118 deletions

View File

@@ -13,6 +13,7 @@
#include "Visitor.h"
#include "GarbageVisitor.h"
#include "Log.h"
#include "BaseToolkit.h"
#include "GlmToolkit.h"
#include "SessionVisitor.h"
@@ -25,7 +26,7 @@ static int num_nodes_ = 0;
Node::Node() : initialized_(false), visible_(true), refcount_(0)
{
// create unique id
id_ = GlmToolkit::uniqueId();
id_ = BaseToolkit::uniqueId();
transform_ = glm::identity<glm::mat4>();
scale_ = glm::vec3(1.f);