Interface BillboardSet

  • All Superinterfaces:
    be.yildizgames.common.gameobject.Deletable, be.yildizgames.common.gameobject.Movable

    public interface BillboardSet
    extends be.yildizgames.common.gameobject.Movable
    A billboard set create and handle billboards with common attributes. Changing attribute on individual billboard will result in an optimization loss.
    Author:
    Grégory Van den Borre
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Billboard createBillboard()
      Create a new billboard object.
      void removeBillboard​(Billboard b)
      Remove a billboard and set it back in the pool.
      void setSize​(float width, float height)
      Set the default size for all created billboards.
      • Methods inherited from interface be.yildizgames.common.gameobject.Deletable

        delete
      • Methods inherited from interface be.yildizgames.common.gameobject.Movable

        addChild, addOptionalChild, attachTo, attachToOptional, detachFromParent, getAbsoluteDirection, getAbsolutePosition, getDirection, getInternal, getPosition, removeChild, setDirection, setDirection, setPosition, setPosition
    • Method Detail

      • createBillboard

        Billboard createBillboard()
        Create a new billboard object.
        Returns:
        The create billboard.
      • removeBillboard

        void removeBillboard​(Billboard b)
        Remove a billboard and set it back in the pool.
        Parameters:
        b - Billboard to remove.
      • setSize

        void setSize​(float width,
                     float height)
        Set the default size for all created billboards.
        Parameters:
        width - Width size in pixels.
        height - Height size in pixels.