Record Class GraphicsBackend
java.lang.Object
java.lang.Record
dev.engine.graphics.GraphicsBackend
public record GraphicsBackend(WindowToolkit toolkit, WindowHandle window, RenderDevice device)
extends Record
The result of creating a graphics backend — bundles the toolkit, window, and device.
-
Constructor Summary
ConstructorsConstructorDescriptionGraphicsBackend(WindowToolkit toolkit, WindowHandle window, RenderDevice device) Creates an instance of aGraphicsBackendrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondevice()Returns the value of thedevicerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toolkit()Returns the value of thetoolkitrecord component.final StringtoString()Returns a string representation of this record class.window()Returns the value of thewindowrecord component.
-
Constructor Details
-
GraphicsBackend
Creates an instance of aGraphicsBackendrecord class.- Parameters:
toolkit- the value for thetoolkitrecord componentwindow- the value for thewindowrecord componentdevice- the value for thedevicerecord 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). -
toolkit
Returns the value of thetoolkitrecord component.- Returns:
- the value of the
toolkitrecord component
-
window
Returns the value of thewindowrecord component.- Returns:
- the value of the
windowrecord component
-
device
Returns the value of thedevicerecord component.- Returns:
- the value of the
devicerecord component
-