Record Class PFGLRendererRef
java.lang.Object
java.lang.Record
dev.pfaff.altargui.pathfinder.PFGLRendererRef
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aPFGLRendererRef
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PFGLRendererRef
create
(PFGLDeviceRef device, PFResourceLoaderRef resourceLoader, PFRendererLevel level, PFGLDestFramebufferInit framebuffer) void
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.ptr()
Returns the value of theptr
record component.void
setViewport
(int x, int y, int width, int height) void
setWindowSize
(int width, int height) final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PFGLRendererRef
Creates an instance of aPFGLRendererRef
record class.- Parameters:
ptr
- the value for theptr
record component
-
-
Method Details
-
create
public static PFGLRendererRef create(PFGLDeviceRef device, PFResourceLoaderRef resourceLoader, PFRendererLevel level, PFGLDestFramebufferInit framebuffer) - Parameters:
device
- moved into the rendererresourceLoader
- borrowed by the renderer
-
destFramebufferSizeChanged
public void destFramebufferSizeChanged() -
setViewport
public void setViewport(int x, int y, int width, int height) -
setWindowSize
public void setWindowSize(int width, int height) -
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)
. -
ptr
Returns the value of theptr
record component.- Returns:
- the value of the
ptr
record component
-