Record Class ImageSrc
java.lang.Object
java.lang.Record
dev.pfaff.altargui.texture.ImageSrc
public record ImageSrc(MemorySegment pixels, dev.pfaff.glass.opengl.enums.GLPixelFormat format, dev.pfaff.glass.opengl.enums.GLPixelType type)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionImageSrc
(MemorySegment pixels, dev.pfaff.glass.opengl.enums.GLPixelFormat format, dev.pfaff.glass.opengl.enums.GLPixelType type) Creates an instance of aImageSrc
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageSrc
final boolean
Indicates whether some other object is "equal to" this one.dev.pfaff.glass.opengl.enums.GLPixelFormat
format()
Returns the value of theformat
record component.final int
hashCode()
Returns a hash code value for this object.pixels()
Returns the value of thepixels
record component.final String
toString()
Returns a string representation of this record class.dev.pfaff.glass.opengl.enums.GLPixelType
type()
Returns the value of thetype
record component.
-
Constructor Details
-
ImageSrc
public ImageSrc(MemorySegment pixels, dev.pfaff.glass.opengl.enums.GLPixelFormat format, dev.pfaff.glass.opengl.enums.GLPixelType type) Creates an instance of aImageSrc
record class.- Parameters:
pixels
- the value for thepixels
record componentformat
- the value for theformat
record componenttype
- the value for thetype
record component
-
-
Method Details
-
create
-
toString
-
hashCode
-
equals
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
pixels
Returns the value of thepixels
record component.- Returns:
- the value of the
pixels
record component
-
format
public dev.pfaff.glass.opengl.enums.GLPixelFormat format()Returns the value of theformat
record component.- Returns:
- the value of the
format
record component
-
type
public dev.pfaff.glass.opengl.enums.GLPixelType type()Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-