Record Class WindowHandle.SurfaceInfo
java.lang.Object
java.lang.Record
dev.engine.graphics.window.WindowHandle.SurfaceInfo
- Enclosing interface:
WindowHandle
public static record WindowHandle.SurfaceInfo(WindowHandle.SurfaceInfo.SurfaceType type, long display, long window)
extends Record
Platform-specific surface information for WebGPU/Vulkan surface creation.
Each windowing toolkit provides the correct handles for its platform.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSurfaceInfo(WindowHandle.SurfaceInfo.SurfaceType type, long display, long window) Creates an instance of aSurfaceInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongdisplay()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.longwindow()Returns the value of thewindowrecord component.
-
Constructor Details
-
SurfaceInfo
Creates an instance of aSurfaceInforecord class.- Parameters:
type- the value for thetyperecord componentdisplay- the value for thedisplayrecord componentwindow- the value for thewindowrecord 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. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
display
public long display()Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
window
public long window()Returns the value of thewindowrecord component.- Returns:
- the value of the
windowrecord component
-