Class GlSurface
java.lang.Object
com.mojang.blaze3d.opengl.GlSurface
- All Implemented Interfaces:
GpuSurfaceBackend, AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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
-
windowHandle
private final long windowHandle -
swapchainWidth
private int swapchainWidth -
swapchainHeight
private int swapchainHeight
-
-
Constructor Details
-
GlSurface
public GlSurface(long windowHandle)
-
-
Method Details
-
configure
- Specified by:
configurein interfaceGpuSurfaceBackend- Throws:
SurfaceException
-
isSuboptimal
public boolean isSuboptimal()- Specified by:
isSuboptimalin interfaceGpuSurfaceBackend
-
acquireNextTexture
public void acquireNextTexture()- Specified by:
acquireNextTexturein interfaceGpuSurfaceBackend
-
blitFromTexture
- Specified by:
blitFromTexturein interfaceGpuSurfaceBackend
-
present
public void present()- Specified by:
presentin interfaceGpuSurfaceBackend
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceGpuSurfaceBackend
-
supportedPresentModes
- Specified by:
supportedPresentModesin interfaceGpuSurfaceBackend
-