Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::StaticMeshComponent Struct Reference

Holds a reference to a static renderable mesh. More...

#include <StaticMeshComponent.h>

Public Member Functions

 StaticMeshComponent ()=default
 StaticMeshComponent (const MeshAssetData &from)
 Constructs mesh component from asset data.
MeshAssetData GetSerializeData ()
 Serializes mesh reference.

Public Attributes

Ref< Mesh > Mesh
 Shared mesh resource.

Detailed Description

Holds a reference to a static renderable mesh.

Constructor & Destructor Documentation

◆ StaticMeshComponent() [1/2]

Raven::StaticMeshComponent::StaticMeshComponent ( )
default

◆ StaticMeshComponent() [2/2]

Raven::StaticMeshComponent::StaticMeshComponent ( const MeshAssetData & from)
inline

Constructs mesh component from asset data.

Parameters
fromMesh asset reference

Member Function Documentation

◆ GetSerializeData()

MeshAssetData Raven::StaticMeshComponent::GetSerializeData ( )
inline

Serializes mesh reference.

Returns
MeshAssetData

Member Data Documentation

◆ Mesh

Ref<Mesh> Raven::StaticMeshComponent::Mesh

Shared mesh resource.


The documentation for this struct was generated from the following file: