zombie.core.Styles
Class LightingStyle

java.lang.Object
  extended by zombie.core.Styles.AbstractStyle
      extended by zombie.core.Styles.LightingStyle
All Implemented Interfaces:
Style

public class LightingStyle
extends AbstractStyle

Author:
LEMMY

Field Summary
static LightingStyle instance
           
 
Constructor Summary
LightingStyle()
           
 
Method Summary
 AlphaOp getAlphaOp()
           
 boolean getRenderSprite()
          Whether to actually render a sprite when using this Style.
 int getStyleID()
           
 void resetState()
          Called to reset GL rendering state after actual drawing is done.
 void setupState()
          Called to set up GL rendering state before actual drawing is done.
 
Methods inherited from class zombie.core.Styles.AbstractStyle
build, render
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static LightingStyle instance
Constructor Detail

LightingStyle

public LightingStyle()
Method Detail

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