Interface EntityI
Syntax
public interface EntityI
Methods
getTransform()
Declaration
public Transform getTransform()
Returns
Type | Description |
---|---|
Transform | Transform Object. |
init()
Initializes The Entity Before The First Frame Of The Scene That Is Being Rendered.
Declaration
public void init()
input(float delta)
This Function Is Intended For Updating All Input Mechanics For The Entity.
Declaration
public void input(float delta)
Parameters
Type | Name | Description |
---|---|---|
float | delta | The Difference In Time. This Parameter Is Usually Requested Directly From The Core Engine. |
render(Shader shader, RenderingEngine engine)
This Function Renders The Entity With The Given Shader, And With The Supplied Rendering Engine.
Declaration
public void render(Shader shader, RenderingEngine engine)
Parameters
Type | Name | Description |
---|---|---|
Shader | shader | Shader That Is Used To Render The Entity. |
RenderingEngine | engine | The Engine Used To Render The Entity. |
setTransform(Transform trnsfrm)
Sets The Entity's Transform To The Transform Provided.
Declaration
public void setTransform(Transform trnsfrm)
Parameters
Type | Name | Description |
---|---|---|
Transform | trnsfrm |
update(float delta)
This Function Is Intended For Updating The Entity (Ex. Animations And Movements)
Declaration
public void update(float delta)
Parameters
Type | Name | Description |
---|---|---|
float | delta | The Difference In Time. This Parameter Is Usually Requested Directly From The Core Engine. |