#pragma once #include "Renderable.h" #include "Texture.h" #include "Sampler.h" namespace charcoal { template class TextureRenderable : public RenderableT { public: TextureRenderable(const RenderableT::MeshType* mesh, Texture* texture, Sampler* sampler, const DrawMode& draw_mode) : RenderableT(mesh, draw_mode), m_p_texture(texture), m_p_sampler(sampler) {} const Texture* get_texture() const { return m_p_texture; } const Sampler* get_sampler() const { return m_p_sampler; } private: Texture* m_p_texture; Sampler* m_p_sampler; }; }