Record Class VertexFormat
java.lang.Object
java.lang.Record
dev.engine.core.mesh.VertexFormat
-
Constructor Summary
ConstructorsConstructorDescriptionVertexFormat(List<VertexAttribute> attributes, int stride) Creates an instance of aVertexFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static VertexFormatof(VertexAttribute... attrs) intstride()Returns the value of thestriderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VertexFormat
Creates an instance of aVertexFormatrecord class.- Parameters:
attributes- the value for theattributesrecord componentstride- the value for thestriderecord component
-
-
Method Details
-
of
-
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 thecomparemethod from their corresponding wrapper classes. -
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
stride
public int stride()Returns the value of thestriderecord component.- Returns:
- the value of the
striderecord component
-