Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::ModelComponentUI Class Reference

#include <ModelComponentUI.hpp>

Inheritance diagram for shkyera::ModelComponentUI:
[legend]

Public Member Functions

 ModelComponentUI (std::shared_ptr< Registry > registry, ModelComponent *modelComponent)
 
void draw () override
 
void setOnMeshUpdate (std::function< void()> callback)
 
- Public Member Functions inherited from shkyera::ComponentUI
 ComponentUI ()
 
 ComponentUI (const std::filesystem::path &texturePath)
 
virtual ~ComponentUI ()=default
 

Private Attributes

ModelComponent_modelComponent
 
std::shared_ptr< Registry_registry
 
AssetSelector< Mesh_meshSelector
 
AssetSelector< Material_materialSelector
 
std::function< void()> _onMeshUpdate
 

Additional Inherited Members

- Protected Attributes inherited from shkyera::ComponentUI
AssetRef< Texture_icon
 

Constructor & Destructor Documentation

◆ ModelComponentUI()

shkyera::ModelComponentUI::ModelComponentUI ( std::shared_ptr< Registry registry,
ModelComponent modelComponent 
)

Member Function Documentation

◆ draw()

void shkyera::ModelComponentUI::draw ( )
overridevirtual

Implements shkyera::ComponentUI.

◆ setOnMeshUpdate()

void shkyera::ModelComponentUI::setOnMeshUpdate ( std::function< void()>  callback)

Member Data Documentation

◆ _materialSelector

AssetSelector<Material> shkyera::ModelComponentUI::_materialSelector
private

◆ _meshSelector

AssetSelector<Mesh> shkyera::ModelComponentUI::_meshSelector
private

◆ _modelComponent

ModelComponent* shkyera::ModelComponentUI::_modelComponent
private

◆ _onMeshUpdate

std::function<void()> shkyera::ModelComponentUI::_onMeshUpdate
private

◆ _registry

std::shared_ptr<Registry> shkyera::ModelComponentUI::_registry
private

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