Class GlSurface
java.lang.Object
com.mojang.renderpearl.backend.opengl.GlSurface
- All Implemented Interfaces:
GpuSurfaceBackend, UncheckedAutoCloseable, AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GlDeviceprivate final BooleanSupplierprivate static final Set<GpuSurface.PresentMode> private intprivate intprivate final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidblitFromTexture(CommandEncoderBackend commandEncoder, GpuTextureView textureView) voidclose()voidconfigure(GpuSurface.Configuration config) booleanvoidpresent()
-
Field Details
-
SUPPORTED_PRESENT_MODES
-
device
-
windowHandle
private final long windowHandle -
isIconified
-
swapchainWidth
private int swapchainWidth -
swapchainHeight
private int swapchainHeight
-
-
Constructor Details
-
GlSurface
GlSurface(GlDevice device, long windowHandle, BooleanSupplier isIconified)
-
-
Method Details
-
configure
- Specified by:
configurein interfaceGpuSurfaceBackend- Throws:
SurfaceException
-
isSuboptimal
public boolean isSuboptimal()- Specified by:
isSuboptimalin interfaceGpuSurfaceBackend
-
acquireNextTexture
- Specified by:
acquireNextTexturein interfaceGpuSurfaceBackend- Throws:
SurfaceException
-
blitFromTexture
- Specified by:
blitFromTexturein interfaceGpuSurfaceBackend
-
present
public void present()- Specified by:
presentin interfaceGpuSurfaceBackend
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceUncheckedAutoCloseable
-
supportedPresentModes
- Specified by:
supportedPresentModesin interfaceGpuSurfaceBackend
-