#pragma once #include "DirectXFramework.h" #include "SceneNode.h" // Class for holding the details of the sub meshes of a split node class class SubMeshNode : public SceneNode { public: SubMeshNode(wstring name, shared_ptr subMesh, bool transparent = false) : SceneNode(name) { _subMesh = subMesh; _transparent = transparent; } bool Initialise(); void Render(); void Shutdown(); bool IsTransparent() const; shared_ptr GetSubMesh() const; XMFLOAT4X4 GetCurrentTransform() const; private: shared_ptr _subMesh; bool _transparent; };