Class ColorLayer

java.lang.Object
de.gurkenlabs.litiengine.graphics.ColorLayer
All Implemented Interfaces:
IRenderable
Direct Known Subclasses:
AmbientLight, StaticShadowLayer

public abstract class ColorLayer extends Object implements IRenderable
  • Constructor Details

  • Method Details

    • render

      public void render(Graphics2D g)
      Description copied from interface: IRenderable
      Renders the visual contents of this instance onto the provided graphics context.

      If an Entity implements this interface, this method will be called right after the entity was rendered from the environment. Allowing for a custom rendering mechanism.

      This interface can be implemented in general by anything that should be rendered to the game's screen.

      Specified by:
      render in interface IRenderable
      Parameters:
      g - The current graphics object onto which this instance will render its visual contents.
      See Also:
    • getColor

      public Color getColor()
    • setAlpha

      public void setAlpha(int ambientAlpha)
    • setColor

      public void setColor(Color color)
    • updateSection

      public void updateSection(Rectangle2D section)
    • renderSection

      protected abstract void renderSection(Graphics2D g, Rectangle2D section)
    • clearSection

      protected abstract void clearSection(Graphics2D g, Rectangle2D section)
    • getEnvironment

      protected Environment getEnvironment()