Class AbstractStyle

java.lang.Object
zombie.core.Styles.AbstractStyle
All Implemented Interfaces:
Style
Direct Known Subclasses:
AdditiveStyle, LightingStyle, TransparentStyle, UIFBOStyle

public abstract class AbstractStyle extends Object implements Style
Convenient base class implementation of
  • Constructor Details

    • AbstractStyle

      public AbstractStyle()
  • Method Details

    • getRenderSprite

      public boolean getRenderSprite()
      Description copied from interface: Style
      Specified by:
      getRenderSprite in interface Style
      Returns:
      boolean
    • getAlphaOp

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

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

      public void resetState()
      Description copied from interface: Style
      Specified by:
      resetState in interface Style
    • setupState

      public void setupState()
      Description copied from interface: Style
      Specified by:
      setupState in interface Style
    • build

      public GeometryData build()
      Description copied from interface: Style
      Specified by:
      build in interface Style
      Returns:
      the vertex data, or null
    • render

      public void render(int vertexOffset, int indexOffset)
      Description copied from interface: Style
      Specified by:
      render in interface Style