Initial new SceneGraph structure

- Has support for SceneGraph loading using lua and ghoul dictionary
- SceneGraphNode can be initialized using ghoul::Dictionary
- Todo: PositionInformation classes
- Todo: TemplateFactory singleton
This commit is contained in:
Jonas Strandstedt
2014-03-04 16:40:22 -05:00
parent 87ae4639c7
commit de8be04754
15 changed files with 412 additions and 171 deletions
+3 -7
View File
@@ -36,18 +36,14 @@ namespace {
}
namespace openspace {
RenderEngine::RenderEngine()
: _mainCamera(nullptr)
, _sceneGraph(nullptr)
{
}
RenderEngine::RenderEngine() : _mainCamera(nullptr) , _sceneGraph(nullptr) {}
RenderEngine::~RenderEngine() {
delete _mainCamera;
delete _sceneGraph;
}
bool RenderEngine::initialize(const std::string& sceneGraph) {
bool RenderEngine::initialize() {
// init camera and set position
_mainCamera = new Camera();
_mainCamera->setScaling(glm::vec2(1.0, -8.0));
@@ -67,7 +63,7 @@ bool RenderEngine::initialize(const std::string& sceneGraph) {
// init scenegraph
_sceneGraph = new SceneGraph;
_sceneGraph->init();
_sceneGraph->initialize();
//_sceneGraph = loadSceneGraph(sceneGraph);
return true;