Record Class EngineParams
java.lang.Object
java.lang.Record
dev.engine.graphics.shader.params.EngineParams
-
Constructor Summary
ConstructorsConstructorDescriptionEngineParams(float time, float deltaTime, Vec2 resolution, int frameCount) Creates an instance of aEngineParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thedeltaTimerecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theframeCountrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theresolutionrecord component.floattime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EngineParams
Creates an instance of aEngineParamsrecord class.- Parameters:
time- the value for thetimerecord componentdeltaTime- the value for thedeltaTimerecord componentresolution- the value for theresolutionrecord componentframeCount- the value for theframeCountrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
time
public float time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
deltaTime
public float deltaTime()Returns the value of thedeltaTimerecord component.- Returns:
- the value of the
deltaTimerecord component
-
resolution
Returns the value of theresolutionrecord component.- Returns:
- the value of the
resolutionrecord component
-
frameCount
public int frameCount()Returns the value of theframeCountrecord component.- Returns:
- the value of the
frameCountrecord component
-