Loading...
Searching...
No Matches
hellfire::RenderableComponent Class Referencefinal

Renderable Component used for single mesh rendering. More...

#include <RenderableComponent.h>

Inheritance diagram for hellfire::RenderableComponent:
Collaboration diagram for hellfire::RenderableComponent:

Public Member Functions

 RenderableComponent ()=default
 
void set_material (const std::shared_ptr< Material > &material)
 
void set_material_asset (AssetID id)
 
std::shared_ptr< Materialget_material () const
 
AssetID get_material_asset () const
 
bool has_material () const
 
void set_cast_shadows (bool cast)
 
void set_receive_shadows (bool receive)
 
bool get_cast_shadows () const
 
bool get_receive_shadows () const
 
- Public Member Functions inherited from hellfire::Component
virtual ~Component ()=default
 
Entityget_owner () const
 
virtual void on_added (Entity *owner)
 
virtual void on_removed ()
 

Public Attributes

bool cast_shadows = true
 
bool receive_shadows = true
 
bool visible = true
 
uint32_t render_layer = 0
 

Private Attributes

std::shared_ptr< Materialmaterial_
 
AssetID material_asset_id_ = INVALID_ASSET_ID
 

Detailed Description

Renderable Component used for single mesh rendering.

Definition at line 10 of file RenderableComponent.h.

Constructor & Destructor Documentation

◆ RenderableComponent()

hellfire::RenderableComponent::RenderableComponent ( )
default

Member Function Documentation

◆ get_cast_shadows()

bool hellfire::RenderableComponent::get_cast_shadows ( ) const
inline

Definition at line 25 of file RenderableComponent.h.

◆ get_material()

std::shared_ptr< Material > hellfire::RenderableComponent::get_material ( ) const
inline

Definition at line 18 of file RenderableComponent.h.

◆ get_material_asset()

AssetID hellfire::RenderableComponent::get_material_asset ( ) const
inline

Definition at line 19 of file RenderableComponent.h.

◆ get_receive_shadows()

bool hellfire::RenderableComponent::get_receive_shadows ( ) const
inline

Definition at line 26 of file RenderableComponent.h.

◆ has_material()

bool hellfire::RenderableComponent::has_material ( ) const
inline

Definition at line 20 of file RenderableComponent.h.

◆ set_cast_shadows()

void hellfire::RenderableComponent::set_cast_shadows ( bool  cast)
inline

Definition at line 23 of file RenderableComponent.h.

◆ set_material()

void hellfire::RenderableComponent::set_material ( const std::shared_ptr< Material > &  material)
inline

Definition at line 15 of file RenderableComponent.h.

◆ set_material_asset()

void hellfire::RenderableComponent::set_material_asset ( AssetID  id)
inline

Definition at line 16 of file RenderableComponent.h.

◆ set_receive_shadows()

void hellfire::RenderableComponent::set_receive_shadows ( bool  receive)
inline

Definition at line 24 of file RenderableComponent.h.

Member Data Documentation

◆ cast_shadows

bool hellfire::RenderableComponent::cast_shadows = true

Definition at line 29 of file RenderableComponent.h.

◆ material_

std::shared_ptr<Material> hellfire::RenderableComponent::material_
private

Definition at line 34 of file RenderableComponent.h.

◆ material_asset_id_

AssetID hellfire::RenderableComponent::material_asset_id_ = INVALID_ASSET_ID
private

Definition at line 35 of file RenderableComponent.h.

◆ receive_shadows

bool hellfire::RenderableComponent::receive_shadows = true

Definition at line 30 of file RenderableComponent.h.

◆ render_layer

uint32_t hellfire::RenderableComponent::render_layer = 0

Definition at line 32 of file RenderableComponent.h.

◆ visible

bool hellfire::RenderableComponent::visible = true

Definition at line 31 of file RenderableComponent.h.


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