Record Class VertexComponentSpec.Attrib
java.lang.Object
java.lang.Record
dev.pfaff.altargui.shader.VertexComponentSpec.Attrib
- All Implemented Interfaces:
VertexComponentSpec
- Enclosing interface:
VertexComponentSpec
public static record VertexComponentSpec.Attrib(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width, @Nullable MemoryLayout customLayout)
extends Record
implements VertexComponentSpec
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.pfaff.altargui.shader.VertexComponentSpec
VertexComponentSpec.Attrib, VertexComponentSpec.Padding
-
Constructor Summary
ConstructorsConstructorDescriptionAttrib
(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width) Attrib
(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width, @Nullable MemoryLayout customLayout) Creates an instance of aAttrib
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable MemoryLayout
Returns the value of thecustomLayout
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.layout()
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.withCustomLayout
(MemoryLayout layout)
-
Constructor Details
-
Attrib
public Attrib(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width, @Nullable MemoryLayout customLayout) Creates an instance of aAttrib
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 componentcustomLayout
- the value for thecustomLayout
record component
-
Attrib
public Attrib(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width) -
Attrib
-
-
Method Details
-
layout
- Specified by:
layout
in interfaceVertexComponentSpec
-
withNormalized
-
withCustomLayout
-
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 thecompare
method from their corresponding wrapper classes. -
name
Returns the value of thename
record component.- Specified by:
name
in interfaceVertexComponentSpec
- 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
-
customLayout
Returns the value of thecustomLayout
record component.- Returns:
- the value of the
customLayout
record component
-