Files
directx-plane-game/Graphics2/SubMeshNode.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

25 lines
577 B
C++

#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> subMesh, bool transparent = false) : SceneNode(name) { _subMesh = subMesh; _transparent = transparent; }
bool Initialise();
void Render();
void Shutdown();
bool IsTransparent() const;
shared_ptr<SubMesh> GetSubMesh() const;
XMFLOAT4X4 GetCurrentTransform() const;
private:
shared_ptr<SubMesh> _subMesh;
bool _transparent;
};