Files
directx-plane-game/Graphics2/SceneGraph.h
iDunnoDev 7a57c73ac3 Added the camera class
Added the DDS Texture Loading for future use
Added the gamepad class for future use
Added first child method to the scenegraph
Added RGB to intensity and lerp methods to the shared methods class
Added the terrain node class with normals
Fixed issue with submeshnode not passing the world transform to the actual meshes
2022-04-18 22:33:15 +01:00

31 lines
749 B
C++

#pragma once
#include <list>
#include "SceneNode.h"
class SceneGraph : public SceneNode
{
public:
SceneGraph() : SceneNode(L"Root") {};
SceneGraph(wstring name) : SceneNode(name) {};
~SceneGraph(void) {};
bool Initialise(void);
void Update(FXMMATRIX& currentWorldTransformation);
void Render(void);
void Shutdown(void);
void Add(SceneNodePointer node);
void Remove(SceneNodePointer node);
SceneNodePointer Find(wstring name);
SceneNodePointer GetRootNode();
SceneNodePointer GetParent();
SceneNodePointer GetFirstChild();
private:
// Here you need to add whatever collection you are going to
// use to store the children of this scene graph
list<SceneNodePointer> _children;
};
typedef shared_ptr<SceneGraph> SceneGraphPointer;