Class ModelComponent¶
Defined in File model_component.h
Inheritance Relationships¶
Base Type¶
public RenderableComponent(Class RenderableComponent)
Derived Types¶
public CPUParticlesComponent(Class CPUParticlesComponent)public DecalComponent(Class DecalComponent)public GridModelComponent(Class GridModelComponent)public SpriteComponent(Class SpriteComponent)
Class Documentation¶
-
class
ModelComponent: public RenderableComponent¶ Used to render static 3D models.
Subclassed by CPUParticlesComponent, DecalComponent, GridModelComponent, SpriteComponent
Public Functions
-
virtual
~ModelComponent()¶
-
bool
preRender(float deltaMilliseconds)¶
-
void
render(float viewDistance)¶
-
void
setModelResourceFile(Ref<ModelResourceFile> newModel, const HashMap<String, String> &materialOverrides)¶
-
ModelResourceFile *
getModelResourceFile() const¶
-
bool
setupData()¶ Perform setting up internal data needed from other components after they have been added to the owning entity.
-
JSON::json
getJSON() const¶ Get JSON representation of the component data needed to re-construct component from memory.
-
void
draw()¶ Expose the component data with ImGui.
Protected Functions
-
void
assignBoundingBox()¶
Protected Attributes
-
Ref<ModelResourceFile>
m_ModelResourceFile¶
-
virtual