Package org.ngengine.components.jme3
Class AppComponentUpdater
java.lang.Object
org.ngengine.components.jme3.AppComponentUpdater
- All Implemented Interfaces:
ComponentUpdater
Updates components using JME3 application resources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUpdate(ComponentManager fragmentManager, Component component) Check if the component can be updated by this updater.voidrender(ComponentManager mng, Component component) Call the render method for the component in the given component manager.voidupdate(ComponentManager mng, Component component, float tpf) Update the component in the given component manager.
-
Constructor Details
-
AppComponentUpdater
-
-
Method Details
-
canUpdate
Description copied from interface:ComponentUpdaterCheck if the component can be updated by this updater. This is used to determine if the component is compatible with this updater and can be updated without issues. If the component is not compatible, it will not be updated and the component manager will call the next available updater in the chain.- Specified by:
canUpdatein interfaceComponentUpdater- Parameters:
fragmentManager- the component managercomponent- the component to check- Returns:
- true if the component can be updated, false otherwise
-
update
Description copied from interface:ComponentUpdaterUpdate the component in the given component manager. This method is called every frame to update the component's state.- Specified by:
updatein interfaceComponentUpdater- Parameters:
mng- the component managercomponent- the component to updatetpf- time per frame, used for time-based updates
-
render
Description copied from interface:ComponentUpdaterCall the render method for the component in the given component manager. This method is called during the render phase to perform low-level rendering logic for the component.- Specified by:
renderin interfaceComponentUpdater- Parameters:
mng- the component managercomponent- the component to render
-