com.annahid.libs.artenus.graphics.effects
DropShadow
Renders the underlying entity with a shadow effect.
public class DropShadow extends FilteredEntity
Field Summary
Fields inherited from com.annahid.libs.artenus.entities.FilteredEntity
Constructor Summary
| Modifier and Type | Constructor and Description |
|---|---|
public | DropShadow(Entity target, float dx, float dy, float shadowAlpha) Creates a new drop shadow effect with given parameters. |
public | DropShadow(Entity target) Creates a new drop shadow effect for the given renderable entity. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
public void | render(RenderingContext context, int flags) Calls render on the underlying entity, with specified flags. |
public DropShadow | setOffset(float dx, float dy) Sets the position offset of this drop shadow effect. |
public DropShadow | setShadowAlpha(float shadowAlpha) Sets the alpha transparency value of the shadow. |
Methods inherited from com.annahid.libs.artenus.entities.FilteredEntity
advance, equals, getAlpha, getAnimation, getColorFilter, getPosition, getRotation, getScale, getUnderlyingEntity, hasBehavior, move, onAttach, onDetach, render, rotate, setAlpha, setAnimation, setColorFilter, setColorFilter, setPosition, setPosition, setRotation, setScale, setScaleMethods inherited from java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitConstructor Detail
| DropShadow | ||||||||
|---|---|---|---|---|---|---|---|---|
public DropShadow(
Entity target,
float dx,
float dy,
float shadowAlpha
)Creates a new drop shadow effect with given parameters.Parameters:
|
| DropShadow | ||
|---|---|---|
public DropShadow(
Entity target
)Creates a new drop shadow effect for the given renderable entity.Parameters:
|
Method Detail
| render |
|---|
public void render(
RenderingContext context,
int flags
)Calls render on the underlying entity, with specified flags. Overrides:
|
| setOffset | ||||
|---|---|---|---|---|
public DropShadow setOffset(
float dx,
float dy
)Sets the position offset of this drop shadow effect. Parameters:
Returns:
This instance |
| setShadowAlpha | ||
|---|---|---|
public DropShadow setShadowAlpha(
float shadowAlpha
)Sets the alpha transparency value of the shadow. Parameters:
Returns:
This instance |