Class Render
java.lang.Object
gaiasky.scene.component.Render
- All Implemented Interfaces:
com.badlogic.ashley.core.Component, IRenderable
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.ashley.core.EntityThe entity.booleanMust render this element to a half-resolution buffer in a post-pass.The render group. -
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 renderablebooleanIs this renderable flagged to be rendered in a half-resolution buffer?voidvoidsetHalfResolutionBuffer(Boolean halfResolutionBuffer) voidsetRendergroup(String rg) voidsetRenderGroup(String rg)
-
Field Details
-
entity
public com.badlogic.ashley.core.Entity entityThe entity. -
halfResolutionBuffer
public boolean halfResolutionBufferMust render this element to a half-resolution buffer in a post-pass. -
renderGroup
The render group.
-
-
Constructor Details
-
Render
public Render()
-
-
Method Details
-
setRenderGroup
-
setRendergroup
-
setBillboardRenderGroup
-
getEntity
public com.badlogic.ashley.core.Entity getEntity() -
setHalfResolutionBuffer
-
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
-
isHalfResolutionBuffer
public boolean isHalfResolutionBuffer()Description copied from interface:IRenderableIs this renderable flagged to be rendered in a half-resolution buffer?- Specified by:
isHalfResolutionBufferin interfaceIRenderable- Returns:
- True if it renders to a half-resolution buffer.
-