Class AdditiveStyle

java.lang.Object
zombie.core.Styles.AbstractStyle
zombie.core.Styles.AdditiveStyle
All Implemented Interfaces:
Style

public final class AdditiveStyle extends AbstractStyle
  • Field Details

  • Constructor Details

    • AdditiveStyle

      public AdditiveStyle()
  • Method Details

    • setupState

      public void setupState()
      Description copied from interface: Style
      Called to set up GL rendering state before actual drawing is done.
      Specified by:
      setupState in interface Style
      Overrides:
      setupState in class AbstractStyle
    • resetState

      public void resetState()
      Description copied from interface: Style
      Called to reset GL rendering state after actual drawing is done.
      Specified by:
      resetState in interface Style
      Overrides:
      resetState in class AbstractStyle
    • getAlphaOp

      public AlphaOp getAlphaOp()
      Specified by:
      getAlphaOp in interface Style
      Overrides:
      getAlphaOp in class AbstractStyle
      Returns:
      the style's alpha operation
    • getStyleID

      public int getStyleID()
      Specified by:
      getStyleID in interface Style
      Overrides:
      getStyleID in class AbstractStyle
      Returns:
      the style's ID, which affects its rendering order
    • getRenderSprite

      public boolean getRenderSprite()
      Description copied from interface: Style
      Whether to actually render a sprite when using this Style.
      Specified by:
      getRenderSprite in interface Style
      Overrides:
      getRenderSprite in class AbstractStyle
      Returns:
      boolean