#pragma once #include "deps.h" #include #include "Mesh.h" #include "DrawMode.h" #include "Batch.h" namespace charcoal { template class RenderableT { public: typedef VertexType VertexType; typedef IndexType IndexType; typedef Mesh MeshType; RenderableT(const MeshType* mesh, const DrawMode& draw_mode) : m_p_mesh(mesh), m_draw_mode(draw_mode) {} const MeshType* get_mesh() const { return m_p_mesh; } const DrawMode& get_draw_mode() const { return m_draw_mode; } private: const MeshType* m_p_mesh = nullptr; DrawMode m_draw_mode; }; }