Record Class RenderCommand.BlitTexture

java.lang.Object
java.lang.Record
dev.engine.graphics.command.RenderCommand.BlitTexture
All Implemented Interfaces:
RenderCommand
Enclosing interface:
RenderCommand

public static record RenderCommand.BlitTexture(Handle<TextureResource> src, Handle<TextureResource> dst, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, boolean linearFilter) extends Record implements RenderCommand
  • Constructor Details

    • BlitTexture

      public BlitTexture(Handle<TextureResource> src, Handle<TextureResource> dst, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, boolean linearFilter)
      Creates an instance of a BlitTexture record class.
      Parameters:
      src - the value for the src record component
      dst - the value for the dst record component
      srcX0 - the value for the srcX0 record component
      srcY0 - the value for the srcY0 record component
      srcX1 - the value for the srcX1 record component
      srcY1 - the value for the srcY1 record component
      dstX0 - the value for the dstX0 record component
      dstY0 - the value for the dstY0 record component
      dstX1 - the value for the dstX1 record component
      dstY1 - the value for the dstY1 record component
      linearFilter - the value for the linearFilter record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • src

      public Handle<TextureResource> src()
      Returns the value of the src record component.
      Returns:
      the value of the src record component
    • dst

      public Handle<TextureResource> dst()
      Returns the value of the dst record component.
      Returns:
      the value of the dst record component
    • srcX0

      public int srcX0()
      Returns the value of the srcX0 record component.
      Returns:
      the value of the srcX0 record component
    • srcY0

      public int srcY0()
      Returns the value of the srcY0 record component.
      Returns:
      the value of the srcY0 record component
    • srcX1

      public int srcX1()
      Returns the value of the srcX1 record component.
      Returns:
      the value of the srcX1 record component
    • srcY1

      public int srcY1()
      Returns the value of the srcY1 record component.
      Returns:
      the value of the srcY1 record component
    • dstX0

      public int dstX0()
      Returns the value of the dstX0 record component.
      Returns:
      the value of the dstX0 record component
    • dstY0

      public int dstY0()
      Returns the value of the dstY0 record component.
      Returns:
      the value of the dstY0 record component
    • dstX1

      public int dstX1()
      Returns the value of the dstX1 record component.
      Returns:
      the value of the dstX1 record component
    • dstY1

      public int dstY1()
      Returns the value of the dstY1 record component.
      Returns:
      the value of the dstY1 record component
    • linearFilter

      public boolean linearFilter()
      Returns the value of the linearFilter record component.
      Returns:
      the value of the linearFilter record component