Class Render

java.lang.Object
gaiasky.scene.component.Render
All Implemented Interfaces:
com.badlogic.ashley.core.Component, IRenderable

public class Render extends Object implements com.badlogic.ashley.core.Component, IRenderable
  • Field Details

    • entity

      public com.badlogic.ashley.core.Entity entity
      The entity.
    • halfResolutionBuffer

      public boolean halfResolutionBuffer
      Must render this element to a half-resolution buffer in a post-pass.
    • renderGroup

      public RenderGroup renderGroup
      The render group.
  • Constructor Details

    • Render

      public Render()
  • Method Details

    • setRenderGroup

      public void setRenderGroup(String rg)
    • setRendergroup

      public void setRendergroup(String rg)
    • setBillboardRenderGroup

      public void setBillboardRenderGroup(String rg)
    • getEntity

      public com.badlogic.ashley.core.Entity getEntity()
    • setHalfResolutionBuffer

      public void setHalfResolutionBuffer(Boolean halfResolutionBuffer)
    • getComponentType

      public ComponentTypes getComponentType()
      Description copied from interface: IRenderable
      Gets the component types of this entity
      Specified by:
      getComponentType in interface IRenderable
      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 interface IRenderable
      Returns:
      The distance
    • getOpacity

      public float getOpacity()
      Description copied from interface: IRenderable
      Returns the opacity of this renderable
      Specified by:
      getOpacity in interface IRenderable
      Returns:
      The opacity
    • isHalfResolutionBuffer

      public boolean isHalfResolutionBuffer()
      Description copied from interface: IRenderable
      Is this renderable flagged to be rendered in a half-resolution buffer?
      Specified by:
      isHalfResolutionBuffer in interface IRenderable
      Returns:
      True if it renders to a half-resolution buffer.