sculpto
mesh_component.h
Go to the documentation of this file.
1/*!****************************************************************//*!*
2 * \file mesh_component.h
3 * \brief Application scene system object mesh component class implementation module.
4 *
5 * \author Sabitov Kirill
6 * \date 02 July 2022
7 *********************************************************************/
8
9#pragma once
10
11#include "core/resources/mesh.h"
12
13namespace scl
14{
17 {
19
20 mesh_component() = default;
21 mesh_component(const mesh_component &Other) = default;
23 ~mesh_component() = default;
24
25 operator const shared<mesh> &() const { return Mesh; }
26 operator shared<mesh> &() { return Mesh; }
27 };
28}
Mesh interfaces definition module. Mesh stores vertex and index buffer and implement their binding du...
Definition: base.h:33
std::shared_ptr< T > shared
Definition: smart_ptr.h:15
mesh_component(shared< mesh > Mesh)
mesh_component(const mesh_component &Other)=default
mesh_component()=default
shared< mesh > Mesh
~mesh_component()=default