Package gaiasky.scene.component
Class Render
java.lang.Object
gaiasky.scene.component.Render
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
,IRenderable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the component types of this entitydouble
Gets the last distance to the camera calculated for this entitycom.badlogic.ashley.core.Entity
float
Returns the opacity of this renderable
-
Field Details
-
entity
public com.badlogic.ashley.core.Entity entity
-
-
Constructor Details
-
Render
public Render()
-
-
Method Details
-
getEntity
public com.badlogic.ashley.core.Entity getEntity() -
getComponentType
Description copied from interface:IRenderable
Gets the component types of this entity- Specified by:
getComponentType
in interfaceIRenderable
- Returns:
- The component types
-
getDistToCamera
public double getDistToCamera()Description copied from interface:IRenderable
Gets the last distance to the camera calculated for this entity- Specified by:
getDistToCamera
in interfaceIRenderable
- Returns:
- The distance
-
getOpacity
public float getOpacity()Description copied from interface:IRenderable
Returns the opacity of this renderable- Specified by:
getOpacity
in interfaceIRenderable
- Returns:
- The opacity
-