Class BackgroundElement

java.lang.Object
rekit.logic.gui.GuiElement
rekit.logic.gui.BackgroundElement

public final class BackgroundElement extends GuiElement
The standard background of the Game.
  • Constructor Details

    • BackgroundElement

      public BackgroundElement(IScene scene, String imageSource)
      Create the background by scene and image.
      Parameters:
      scene - the scene
      imageSource - the path to the image
  • Method Details

    • internalRender

      public void internalRender(GameGrid f)
      Description copied from class: GuiElement

      Template method that will be called periodically after being added to a IScene. Must be as performant as possible to keep the FPS low, since it will be called in every render-loop.

      Should be overwritten in sub classes for custom visualization using the GameGrid.

      Specified by:
      internalRender in class GuiElement
      Parameters:
      f - the GameGrid that represents the games field and supplies primitive drawing operations.