Class AppViewPortComponentUpdater

java.lang.Object
org.ngengine.components.jme3.AppViewPortComponentUpdater
All Implemented Interfaces:
ComponentUpdater

public class AppViewPortComponentUpdater extends Object implements ComponentUpdater
Updates viewport components using JME3 application resources.
  • Constructor Details

    • AppViewPortComponentUpdater

      public AppViewPortComponentUpdater(Application app)
  • Method Details

    • canUpdate

      public boolean canUpdate(ComponentManager fragmentManager, Component component)
      Description copied from interface: ComponentUpdater
      Check 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:
      canUpdate in interface ComponentUpdater
      Parameters:
      fragmentManager - the component manager
      component - the component to check
      Returns:
      true if the component can be updated, false otherwise
    • update

      public void update(ComponentManager fragmentManager, Component component, float tpf)
      Description copied from interface: ComponentUpdater
      Update the component in the given component manager. This method is called every frame to update the component's state.
      Specified by:
      update in interface ComponentUpdater
      Parameters:
      fragmentManager - the component manager
      component - the component to update
      tpf - time per frame, used for time-based updates
    • render

      public void render(ComponentManager fragmentManager, Component component)
      Description copied from interface: ComponentUpdater
      Call 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:
      render in interface ComponentUpdater
      Parameters:
      fragmentManager - the component manager
      component - the component to render