implemented application and scenegraph

This commit is contained in:
cirdan
2008-01-20 10:16:37 +00:00
parent 77504c68f3
commit 2373b382f1
29 changed files with 2196 additions and 2076 deletions

35
engine/SceneGraph.cpp Normal file
View File

@ -0,0 +1,35 @@
#include "SceneGraph.h"
namespace BlueCore
{
SceneGraph::SceneGraph()
{
_RootNode = new SceneNode();
}
SceneGraph::~SceneGraph()
{
}
SceneNode* SceneGraph::getRootNode()
{
return _RootNode.pointer();
}
void SceneGraph::setCamera(Camera *camera)
{
_Camera = camera;
}
void SceneGraph::update(Scalar time)
{
_RootNode->update (time);
}
void SceneGraph::queue (RenderQueue *queue)
{
_RootNode->queue (queue, _Camera);
}
}