Class GlBackend
java.lang.Object
com.mojang.blaze3d.opengl.GlBackend
- All Implemented Interfaces:
GpuBackend
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDevice(long window, ShaderSource defaultShaderSource, GpuDebugOptions debugOptions) getName()voidhandleWindowCreationErrors(@Nullable GLFWErrorCapture.Error error) void
-
Field Details
-
VERSION_MAJOR
private static final int VERSION_MAJOR- See Also:
-
VERSION_MINOR
private static final int VERSION_MINOR- See Also:
-
-
Constructor Details
-
GlBackend
public GlBackend()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceGpuBackend
-
setWindowHints
public void setWindowHints()- Specified by:
setWindowHintsin interfaceGpuBackend
-
handleWindowCreationErrors
public void handleWindowCreationErrors(@Nullable GLFWErrorCapture.Error error) throws BackendCreationException - Specified by:
handleWindowCreationErrorsin interfaceGpuBackend- Throws:
BackendCreationException
-
createDevice
public GpuDevice createDevice(long window, ShaderSource defaultShaderSource, GpuDebugOptions debugOptions) - Specified by:
createDevicein interfaceGpuBackend
-