Class Billboard
- java.lang.Object
-
- be.yildizgames.module.graphic.billboard.Billboard
-
public abstract class Billboard extends Object
A billboard is a plane always facing the camera.- Author:
- Grégory Van den Borre
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBillboard()Simple constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description floatgetHeight()be.yildizgames.common.geometry.Point3DgetPosition()floatgetWidth()abstract voidsetColor(be.yildizgames.module.color.Color color)Set the billboard individual color.voidsetPosition(be.yildizgames.common.geometry.Point3D newPosition)Update the plane position.protected abstract voidsetPositionImpl(be.yildizgames.common.geometry.Point3D position)Set the position in implementation.voidsetSize(float newWidth, float newHeight)Update the plane size.protected abstract voidsetSizeImpl(float newWidth, float newHeight)Set the size in implementation.
-
-
-
Method Detail
-
setSize
public final void setSize(float newWidth, float newHeight)Update the plane size.- Parameters:
newWidth- New width.newHeight- New height.
-
getPosition
public final be.yildizgames.common.geometry.Point3D getPosition()
- Returns:
- The current position.
-
setPosition
public final void setPosition(be.yildizgames.common.geometry.Point3D newPosition)
Update the plane position.- Parameters:
newPosition- New position.
-
getWidth
public final float getWidth()
- Returns:
- The plane width.
-
getHeight
public final float getHeight()
- Returns:
- The plane height.
-
setColor
public abstract void setColor(be.yildizgames.module.color.Color color)
Set the billboard individual color.- Parameters:
color- Color to set.
-
setPositionImpl
protected abstract void setPositionImpl(be.yildizgames.common.geometry.Point3D position)
Set the position in implementation.- Parameters:
position- New position.
-
setSizeImpl
protected abstract void setSizeImpl(float newWidth, float newHeight)Set the size in implementation.- Parameters:
newWidth- New width.newHeight- New height.
-
-