Class Billboard


  • public abstract class Billboard
    extends Object
    A billboard is a plane always facing the camera.
    Author:
    Grégory Van den Borre
    • Constructor Detail

      • Billboard

        protected Billboard()
        Simple constructor.
    • 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.