void Uploader::init(GLManager *glManager) { // init editorgui getRootScene()->addComponent<EditorGUI>(); getRootScene()->getComponent<EditorGUI>()->rootScene = getRootScene(); auto cam = std::make_shared<Entity>(); cam->addComponent<OrthoCamera>(getEngine()->getWindow()->getWidth() / (float)getEngine()->getWindow()->getHeight(), 512, 0.01f, 10000.0f); addToScene(cam); auto primary_camera = cam->getComponent<OrthoCamera>(); getEngine()->getGLManager()->setActiveCamera(primary_camera); }
boost::any SceneTreeModel::getRoot(void) const { return boost::any(getRootScene()); }