Class ColorLayer
java.lang.Object
de.gurkenlabs.litiengine.graphics.ColorLayer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidclearSection(Graphics2D g, Rectangle2D section) getColor()protected Environmentvoidrender(Graphics2D g) Renders the visual contents of this instance onto the provided graphics context.protected abstract voidrenderSection(Graphics2D g, Rectangle2D section) voidsetAlpha(int ambientAlpha) voidvoidupdateSection(Rectangle2D section)
-
Constructor Details
-
ColorLayer
-
-
Method Details
-
render
Description copied from interface:IRenderableRenders the visual contents of this instance onto the provided graphics context.If an
Entityimplements 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:
renderin interfaceIRenderable- Parameters:
g- The current graphics object onto which this instance will render its visual contents.- See Also:
-
getColor
-
setAlpha
public void setAlpha(int ambientAlpha) -
setColor
-
updateSection
-
renderSection
-
clearSection
-
getEnvironment
-