|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectzombie.core.Styles.AbstractStyle
public abstract class AbstractStyle
Convenient base class implementation of Style
| Constructor Summary | |
|---|---|
AbstractStyle()
|
|
| Method Summary | |
|---|---|
GeometryData |
build()
If not rendering a sprite, then we perform a build() to create GeometryData
Later, render() is called, with a vertex offset position and index offset position. |
AlphaOp |
getAlphaOp()
|
boolean |
getRenderSprite()
Whether to actually render a sprite when using this Style. |
int |
getStyleID()
|
void |
render(int vertexOffset,
int indexOffset)
If not rendering a sprite, then render stuff. |
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 java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractStyle()
| Method Detail |
|---|
public boolean getRenderSprite()
Style
getRenderSprite in interface Stylepublic AlphaOp getAlphaOp()
getAlphaOp in interface Stylepublic int getStyleID()
getStyleID in interface Stylepublic void resetState()
Style
resetState in interface Stylepublic void setupState()
Style
setupState in interface Stylepublic GeometryData build()
StyleGeometryData
Later, render() is called, with a vertex offset position and index offset position. Return null if you are going
to handle your own VBOs in Style.setupState().
build in interface Style
public void render(int vertexOffset,
int indexOffset)
Style
render in interface Style
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||