public class TextureComponent
extends java.lang.Object
implements com.badlogic.ashley.core.Component, com.badlogic.gdx.utils.Pool.Poolable
| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.graphics.g2d.TextureRegion |
region |
| Constructor and Description |
|---|
TextureComponent() |
| Modifier and Type | Method and Description |
|---|---|
static TextureComponent |
create(com.badlogic.ashley.core.Engine engine) |
void |
reset() |
TextureComponent |
setRegion(com.badlogic.gdx.graphics.g2d.TextureRegion region) |
public static TextureComponent create(com.badlogic.ashley.core.Engine engine)
public TextureComponent setRegion(com.badlogic.gdx.graphics.g2d.TextureRegion region)
public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolable