Record Class VertexAttribSpec
java.lang.Object
java.lang.Record
dev.pfaff.altargui.shader.VertexAttribSpec
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVertexAttribSpec
(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width) VertexAttribSpec
(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width, ByteOrder byteOrder) Creates an instance of aVertexAttribSpec
record class.VertexAttribSpec
(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, int width) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebyteOrder
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.boolean
Returns the value of thenormalized
record component.final String
toString()
Returns a string representation of this record class.dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType
type()
Returns the value of thetype
record component.int
width()
Returns the value of thewidth
record component.withByteOrder
(ByteOrder byteOrder)
-
Field Details
-
PADDING_BYTE
-
-
Constructor Details
-
VertexAttribSpec
public VertexAttribSpec(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width, ByteOrder byteOrder) Creates an instance of aVertexAttribSpec
record class.- Parameters:
name
- the value for thename
record componenttype
- the value for thetype
record componentnormalized
- the value for thenormalized
record componentwidth
- the value for thewidth
record componentbyteOrder
- the value for thebyteOrder
record component
-
VertexAttribSpec
public VertexAttribSpec(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width) -
VertexAttribSpec
public VertexAttribSpec(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, int width)
-
-
Method Details
-
withNormalized
-
withByteOrder
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
type
public dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type()Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
normalized
public boolean normalized()Returns the value of thenormalized
record component.- Returns:
- the value of the
normalized
record component
-
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
byteOrder
Returns the value of thebyteOrder
record component.- Returns:
- the value of the
byteOrder
record component
-