be.yildizgames.common.gameobject.DeletableDirectionalLight, PointLight, SpotLightpublic abstract class Light
extends be.yildizgames.common.util.BaseRegisterable
implements be.yildizgames.common.gameobject.Deletable
| Modifier | Constructor | Description |
|---|---|---|
protected |
Light(String name,
be.yildizgames.common.geometry.Point3D lightPosition) |
Full constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
attachLensFlare(LensFlare lens) |
Attach a lens flare to follow this light moves.
|
void |
delete() |
Delete the light and all associated lens flares.
|
protected abstract void |
deleteImpl() |
Call specific implementation delete code.
|
List<LensFlare> |
getLensFlareList() |
|
be.yildizgames.common.geometry.Point3D |
getPosition() |
|
void |
move(be.yildizgames.common.geometry.Point3D toMove) |
Move the light.
|
void |
setPosition(be.yildizgames.common.geometry.Point3D position) |
Update the light position.
|
protected abstract void |
setPositionImpl(be.yildizgames.common.geometry.Point3D position) |
Set the position in implementation.
|
protected Light(String name, be.yildizgames.common.geometry.Point3D lightPosition)
name - Unique name to be used by the Registerer.lightPosition - Light position.public final void move(be.yildizgames.common.geometry.Point3D toMove)
toMove - Translation value.public final void attachLensFlare(LensFlare lens)
lens - Lens flare to attach to this light.public final void setPosition(be.yildizgames.common.geometry.Point3D position)
position - New position.public final be.yildizgames.common.geometry.Point3D getPosition()
protected abstract void setPositionImpl(be.yildizgames.common.geometry.Point3D position)
position - New position.public final void delete()
delete in interface be.yildizgames.common.gameobject.Deletableprotected abstract void deleteImpl()
Copyright © 2014–2018. All rights reserved.