Files
directx-plane-game/Graphics2/SplitMeshNode.h
iDunnoDev 616f68bf8b Added Comments
Added ability to hold shift and skip the terrain generation when loading
Added ability for the perlin terrain to save a raw image of the terrain to use as a cache
2022-06-13 16:41:25 +01:00

27 lines
686 B
C++

#pragma once
#include "DirectXFramework.h"
#include "SceneGraph.h"
#include "SubMeshRenderer.h"
#include "SubMeshNode.h"
// Class for creating a scenegraph centric split mesh node, that allows for transformation of any of the sub meshes
class SplitMeshNode : public SceneGraph
{
public:
SplitMeshNode(wstring name, wstring modelName) : SceneGraph(name) { _modelName = modelName; }
bool Initialise(void);
void Render(void);
void Shutdown(void);
SceneNodePointer AddMeshNode(shared_ptr<Node> node);
private:
shared_ptr<SubMeshRenderer> _renderer;
wstring _modelName;
shared_ptr<ResourceManager> _resourceManager;
shared_ptr<Mesh> _mesh;
bool _isInit = false;
};