Class IRectRenderObject

java.lang.Object
dev.pfaff.altargui.render.RenderObject
dev.pfaff.altargui.render.objects.IRectRenderObject
All Implemented Interfaces:
Uploadable, AutoCloseable
Direct Known Subclasses:
RectRenderObject, TexturedRectRenderObject

public abstract sealed class IRectRenderObject extends RenderObject permits RectRenderObject, TexturedRectRenderObject
  • Constructor Details

    • IRectRenderObject

      public IRectRenderObject()
  • Method Details

    • getX

      protected final float getX()
    • getY

      protected final float getY()
    • getWidth

      protected final float getWidth()
    • getHeight

      protected final float getHeight()
    • getColor

      protected final Color getColor()
    • updatePosition

      public final void updatePosition(float x, float y)
    • updateSize

      public final void updateSize(float width, float height)
    • updatePositionSize

      public final void updatePositionSize(float x, float y, float width, float height)
    • updateColor

      public final void updateColor(Color color)
      Parameters:
      color - RGBA
    • instanceCount

      public final int instanceCount()
      Specified by:
      instanceCount in class RenderObject
    • size

      public int size()
      Description copied from interface: Uploadable
      The number of bytes that this consumer will provide the sink with upon Uploadable.uploadTo(Sink).
      Specified by:
      size in interface Uploadable
      Overrides:
      size in class RenderObject