#include "IMesh.h"

namespace ExtraLife {

	IMesh::IMesh(std::vector<VertexToShader> vertices, std::vector<unsigned> indices, IShaderProgram& shader_program)
		:m_mat_tex_handler{ nullptr },
		m_vertices{ std::move(vertices) },
		m_indices{ std::move(indices) }{
	}

	size_t IMesh::get_indices_size() const {
		return m_indices.size();
	}

	ITextureHandler* IMesh::get_texture_handler() const{
		return m_mat_tex_handler->get_texture_handler();
	}

	MaterialHandler* IMesh::get_material_handler() const{
		return m_mat_tex_handler->get_material_handler();
	}

} // namespace ExtraLife