Class GlBackend
java.lang.Object
com.mojang.renderpearl.backend.opengl.GlBackend
- All Implemented Interfaces:
GpuBackend
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate @Nullable BackendCreationExceptionprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDevice(GpuDebugOptions debugOptions) longcreateWindow(@Nullable String title, int width, int height, long flags) getName()voidvoid
-
Field Details
-
VERSION_MAJOR
private static final int VERSION_MAJOR- See Also:
-
VERSION_MINOR
private static final int VERSION_MINOR- See Also:
-
libraryLoaded
private boolean libraryLoaded -
libraryLoadFailure
-
-
Constructor Details
-
GlBackend
public GlBackend()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceGpuBackend
-
loadLibrary
- Specified by:
loadLibraryin interfaceGpuBackend- Throws:
BackendCreationException
-
unloadLibrary
public void unloadLibrary()- Specified by:
unloadLibraryin interfaceGpuBackend
-
createWindow
- Specified by:
createWindowin interfaceGpuBackend
-
createDevice
- Specified by:
createDevicein interfaceGpuBackend- Throws:
BackendCreationException
-