Class AlphaTextureRenderComponent

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, Renderable, Comparable<Renderable>

public class AlphaTextureRenderComponent extends TextureRenderComponent
  • Constructor Details

    • AlphaTextureRenderComponent

      public AlphaTextureRenderComponent(String texturePath)
      Parameters:
      texturePath - Internal path of static texture to render. Will be scaled to the entity's scale.
  • Method Details

    • setAlpha

      public void setAlpha(float alpha)
    • getAlpha

      public float getAlpha()
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch sb)
      Description copied from class: RenderComponent
      Draw the renderable. Should be called only by the renderer, not manually.
      Overrides:
      draw in class TextureRenderComponent
      Parameters:
      sb - Batch to render to.