Finality Engine
Loading...
Searching...
No Matches
FINALITY::MaterialComponent Struct Reference

#include <Components.h>

Public Member Functions

 MaterialComponent ()=default
 MaterialComponent (const MaterialComponent &other)
MaterialComponent & operator= (const MaterialComponent &other)
 MaterialComponent (const std::shared_ptr< Material > &materialInstance)
 MaterialComponent (const std::shared_ptr< Material > &instance, const std::string &identifier)

Public Attributes

std::shared_ptr< Material > MaterialInstance
std::string MaterialIdentifier

Detailed Description

Todo
TODO: Document MaterialComponent struct semantics, ownership and usage.

Definition at line 71 of file Components.h.

Constructor & Destructor Documentation

◆ MaterialComponent() [1/4]

FINALITY::MaterialComponent::MaterialComponent ( )
default

◆ MaterialComponent() [2/4]

FINALITY::MaterialComponent::MaterialComponent ( const MaterialComponent & other)
inline

Definition at line 77 of file Components.h.

◆ MaterialComponent() [3/4]

FINALITY::MaterialComponent::MaterialComponent ( const std::shared_ptr< Material > & materialInstance)
inline

Definition at line 89 of file Components.h.

◆ MaterialComponent() [4/4]

FINALITY::MaterialComponent::MaterialComponent ( const std::shared_ptr< Material > & instance,
const std::string & identifier )
inline

Definition at line 91 of file Components.h.

Member Function Documentation

◆ operator=()

MaterialComponent & FINALITY::MaterialComponent::operator= ( const MaterialComponent & other)
inline

Definition at line 80 of file Components.h.

Member Data Documentation

◆ MaterialInstance

std::shared_ptr<Material> FINALITY::MaterialComponent::MaterialInstance

Definition at line 73 of file Components.h.

◆ MaterialIdentifier

std::string FINALITY::MaterialComponent::MaterialIdentifier

Definition at line 74 of file Components.h.


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