Interface TexturedDrawable
- All Superinterfaces:
ColoredDrawable,Drawable
- All Known Implementing Classes:
Circle,Rect,RoundedRect,Shape
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An object that can be drawn on the screen with a given texture, color and depth.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddraw(Renderer renderer, TextureAsset texture, float depth) Draws this object with a given texture.voiddraw(Renderer renderer, TextureAsset texture, Color color, float depth) Draws this object with a given texture and color.default voidDraws this object with a given color.Methods inherited from interface dev.prozilla.pine.core.rendering.shape.ColoredDrawable
draw
-
Method Details
-
draw
Description copied from interface:ColoredDrawableDraws this object with a given color.- Specified by:
drawin interfaceColoredDrawable- Parameters:
renderer- The renderercolor- The color to draw withdepth- The depth of the entity
-
draw
Draws this object with a given texture.- Parameters:
renderer- The renderertexture- The texture to draw withdepth- The depth of the entity
-
draw
Draws this object with a given texture and color.- Parameters:
renderer- The renderertexture- The texture to draw withcolor- The color to draw withdepth- The depth of the entity
-