Record Class VertexAttrib
java.lang.Object
java.lang.Record
dev.pfaff.altargui.shader.VertexAttrib
- Record Components:
location
- The attribute location.type
- The type of the element.width
- The lane width of the type.offset
- The offset of the first element in the buffer.
public record VertexAttrib(int location, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width, int offset)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVertexAttrib
(int location, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width, int offset) Creates an instance of aVertexAttrib
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
location()
Returns the value of thelocation
record component.boolean
Returns the value of thenormalized
record component.int
offset()
Returns the value of theoffset
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.
-
Field Details
-
PADDING_BYTE
-
DIVISOR_PER_VERTEX
public static final int DIVISOR_PER_VERTEX- See Also:
-
DIVISOR_PER_INSTANCE
public static final int DIVISOR_PER_INSTANCE- See Also:
-
-
Constructor Details
-
VertexAttrib
public VertexAttrib(int location, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width, int offset) Creates an instance of aVertexAttrib
record class.
-
-
Method Details
-
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 '=='. -
location
-
type
-
normalized
public boolean normalized()Returns the value of thenormalized
record component.- Returns:
- the value of the
normalized
record component
-
width
-
offset
-