Record Class RenderCommand.CopyTexture

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

public static record RenderCommand.CopyTexture(Handle<TextureResource> src, Handle<TextureResource> dst, int srcX, int srcY, int dstX, int dstY, int width, int height, int srcMipLevel, int dstMipLevel) extends Record implements RenderCommand
  • Constructor Details

    • CopyTexture

      public CopyTexture(Handle<TextureResource> src, Handle<TextureResource> dst, int srcX, int srcY, int dstX, int dstY, int width, int height, int srcMipLevel, int dstMipLevel)
      Creates an instance of a CopyTexture record class.
      Parameters:
      src - the value for the src record component
      dst - the value for the dst record component
      srcX - the value for the srcX record component
      srcY - the value for the srcY record component
      dstX - the value for the dstX record component
      dstY - the value for the dstY record component
      width - the value for the width record component
      height - the value for the height record component
      srcMipLevel - the value for the srcMipLevel record component
      dstMipLevel - the value for the dstMipLevel 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
    • srcX

      public int srcX()
      Returns the value of the srcX record component.
      Returns:
      the value of the srcX record component
    • srcY

      public int srcY()
      Returns the value of the srcY record component.
      Returns:
      the value of the srcY record component
    • dstX

      public int dstX()
      Returns the value of the dstX record component.
      Returns:
      the value of the dstX record component
    • dstY

      public int dstY()
      Returns the value of the dstY record component.
      Returns:
      the value of the dstY record component
    • width

      public int width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • srcMipLevel

      public int srcMipLevel()
      Returns the value of the srcMipLevel record component.
      Returns:
      the value of the srcMipLevel record component
    • dstMipLevel

      public int dstMipLevel()
      Returns the value of the dstMipLevel record component.
      Returns:
      the value of the dstMipLevel record component