Class Render
java.lang.Object
gaiasky.scene.component.Render
- All Implemented Interfaces:
com.badlogic.ashley.core.Component, IRenderable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the component types of this entitydoubleGets the last distance to the camera calculated for this entitycom.badlogic.ashley.core.EntityfloatReturns 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:IRenderableGets the component types of this entity- Specified by:
getComponentTypein interfaceIRenderable- Returns:
- The component types
-
getDistToCamera
public double getDistToCamera()Description copied from interface:IRenderableGets the last distance to the camera calculated for this entity- Specified by:
getDistToCamerain interfaceIRenderable- Returns:
- The distance
-
getOpacity
public float getOpacity()Description copied from interface:IRenderableReturns the opacity of this renderable- Specified by:
getOpacityin interfaceIRenderable- Returns:
- The opacity
-