Class HighlightedTextureRenderComponent

java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.rendering.RenderComponent
com.deco2800.game.rendering.HighlightedTextureRenderComponent
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, Renderable, Comparable<Renderable>

public class HighlightedTextureRenderComponent extends RenderComponent
Render a static texture.
  • Constructor Details

    • HighlightedTextureRenderComponent

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

      public HighlightedTextureRenderComponent(com.badlogic.gdx.graphics.Texture texture)
      Parameters:
      texture - Static texture to render. Will be scaled to the entity's scale.
  • Method Details

    • draw

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