sculpto
Main Page
Namespaces
Classes
Files
File List
File Members
core
components
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
13
namespace
scl
14
{
16
struct
mesh_component
17
{
18
shared<mesh>
Mesh
{};
19
20
mesh_component
() =
default
;
21
mesh_component
(
const
mesh_component
&Other) =
default
;
22
mesh_component
(
shared<mesh>
Mesh
) :
Mesh
(
Mesh
) {}
23
~mesh_component
() =
default
;
24
25
operator
const
shared<mesh>
&()
const
{
return
Mesh
; }
26
operator
shared<mesh>
&() {
return
Mesh
; }
27
};
28
}
mesh.h
Mesh interfaces definition module. Mesh stores vertex and index buffer and implement their binding du...
scl
Definition:
base.h:33
scl::shared
std::shared_ptr< T > shared
Definition:
smart_ptr.h:15
scl::mesh_component
Definition:
mesh_component.h:17
scl::mesh_component::mesh_component
mesh_component(shared< mesh > Mesh)
Definition:
mesh_component.h:22
scl::mesh_component::mesh_component
mesh_component(const mesh_component &Other)=default
scl::mesh_component::mesh_component
mesh_component()=default
scl::mesh_component::Mesh
shared< mesh > Mesh
Definition:
mesh_component.h:18
scl::mesh_component::~mesh_component
~mesh_component()=default
Generated by
1.9.4