Class RenderableComponent¶
Defined in File renderable_component.h
Inheritance Relationships¶
Base Type¶
public Component(Class Component)
Derived Types¶
public AnimatedModelComponent(Class AnimatedModelComponent)public ModelComponent(Class ModelComponent)
Class Documentation¶
-
class
RenderableComponent: public Component¶ Base class for all components related to rendering.
Subclassed by AnimatedModelComponent, ModelComponent
Public Functions
-
virtual
~RenderableComponent()¶
-
void
setVisible(bool enabled)¶
-
bool
isVisible() const¶
-
virtual bool
preRender(float deltaMilliseconds)¶
-
virtual void
render(float viewDistance)¶
-
virtual void
postRender()¶
-
virtual void
setMaterialOverride(MaterialResourceFile *oldMaterial, Ref<MaterialResourceFile> newMaterial)¶
-
Ref<MaterialResourceFile>
getMaterialOverride(MaterialResourceFile *material)¶
-
unsigned int
getRenderPass() const¶
-
bool
setupData()¶ Perform setting up internal data needed from other components after they have been added to the owning entity.
-
bool
setupEntities()¶ Perform setting up operations which are possible only after all entities have been set up.
-
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
-
float
getLODFactor(float viewDistance)¶
-
virtual