Class ClientVisualization
java.lang.Object
net.minecraftforge.fml.loading.progress.ClientVisualization
- All Implemented Interfaces:
EarlyProgressVisualization.Visualization
-
Field Summary
Modifier and TypeFieldDescriptionprivate int[]
private org.lwjgl.glfw.GLFWFramebufferSizeCallback
private static final float[]
private Thread
private boolean
private final int
private final int
private long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static float
clamp
(float num, float min, float max) private static int
clamp
(int num, int min, int max) private void
fbResize
(long window, int width, int height) private void
handleLastGLFWError
(BiConsumer<Integer, String> handler) long
handOffWindow
(IntSupplier width, IntSupplier height, Supplier<String> title, LongSupplier monitorSupplier) private static int
hsvToRGB
(float hue, float saturation, float value) private void
initWindow
(String mcVersion) private void
private void
private void
renderMessage
(String message, float[] colour, int row, float alpha) private void
private void
private void
private void
setWindowIcon
(org.lwjgl.system.MemoryStack stack) void
updateFBSize
(IntConsumer width, IntConsumer height)
-
Field Details
-
screenWidth
private final int screenWidth- See Also:
-
screenHeight
private final int screenHeight- See Also:
-
window
private long window -
renderThread
-
running
private boolean running -
framebufferSizeCallback
private org.lwjgl.glfw.GLFWFramebufferSizeCallback framebufferSizeCallback -
fbSize
private int[] fbSize -
memorycolour
private static final float[] memorycolour
-
-
Constructor Details
-
ClientVisualization
ClientVisualization()
-
-
Method Details
-
initWindow
-
setWindowIcon
private void setWindowIcon(org.lwjgl.system.MemoryStack stack) -
renderProgress
private void renderProgress() -
clamp
private static float clamp(float num, float min, float max) -
clamp
private static int clamp(int num, int min, int max) -
hsvToRGB
private static int hsvToRGB(float hue, float saturation, float value) -
renderBackground
private void renderBackground() -
fbResize
private void fbResize(long window, int width, int height) -
handleLastGLFWError
-
renderMessages
private void renderMessages() -
updateFBSize
- Specified by:
updateFBSize
in interfaceEarlyProgressVisualization.Visualization
-
renderMemoryInfo
private void renderMemoryInfo() -
renderMessage
-
renderThreadFunc
private void renderThreadFunc() -
start
- Specified by:
start
in interfaceEarlyProgressVisualization.Visualization
-
handOffWindow
public long handOffWindow(IntSupplier width, IntSupplier height, Supplier<String> title, LongSupplier monitorSupplier) - Specified by:
handOffWindow
in interfaceEarlyProgressVisualization.Visualization
-