Record Class DrawCommand
java.lang.Object
java.lang.Record
dev.engine.graphics.renderer.DrawCommand
public record DrawCommand(Handle<?> entity, Renderable renderable, Mat4 transform, PropertyMap<MaterialData> materialData)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDrawCommand(Handle<?> entity, Renderable renderable, Mat4 transform, PropertyMap<MaterialData> materialData) Creates an instance of aDrawCommandrecord class. -
Method Summary
Modifier and TypeMethodDescriptionHandle<?> entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thematerialDatarecord component.Returns the value of therenderablerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformrecord component.
-
Constructor Details
-
DrawCommand
public DrawCommand(Handle<?> entity, Renderable renderable, Mat4 transform, PropertyMap<MaterialData> materialData) Creates an instance of aDrawCommandrecord class.- Parameters:
entity- the value for theentityrecord componentrenderable- the value for therenderablerecord componenttransform- the value for thetransformrecord componentmaterialData- the value for thematerialDatarecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
renderable
Returns the value of therenderablerecord component.- Returns:
- the value of the
renderablerecord component
-
transform
Returns the value of thetransformrecord component.- Returns:
- the value of the
transformrecord component
-
materialData
Returns the value of thematerialDatarecord component.- Returns:
- the value of the
materialDatarecord component
-