Package com.deco2800.game.rendering
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>
Render a static texture.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionHighlightedTextureRenderComponent(com.badlogic.gdx.graphics.Texture texture) HighlightedTextureRenderComponent(String texturePath) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddraw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch) Draw the renderable.Methods inherited from class com.deco2800.game.rendering.RenderComponent
compareTo, create, dispose, getLayer, getZIndex, renderMethods inherited from class com.deco2800.game.components.Component
earlyUpdate, getEntity, isAnimationRenderComponent, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
HighlightedTextureRenderComponent
- 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:RenderComponentDraw the renderable. Should be called only by the renderer, not manually.- Specified by:
drawin classRenderComponent- Parameters:
batch- Batch to render to.
-