From 6cb650a3e00de147dc13051c38414e1a691da5e2 Mon Sep 17 00:00:00 2001 From: Tefek <31473117+493msi@users.noreply.github.com> Date: Sat, 16 Jan 2021 17:53:39 +0100 Subject: [PATCH] [PlutoStatic] Added the GLFW virtual module --- UPDATE_NOTES.md | 2 ++ .../main/java/cz/tefek/pluto/engine/ModGLFW.java | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 plutostatic/src/main/java/cz/tefek/pluto/engine/ModGLFW.java diff --git a/UPDATE_NOTES.md b/UPDATE_NOTES.md index 0c0e43c..3fa46c1 100644 --- a/UPDATE_NOTES.md +++ b/UPDATE_NOTES.md @@ -9,6 +9,8 @@ * `[PlutoLib]` Made `OutputSplitStream` public as it is now reusable * `[PlutoLib]` Added the `@ConstantExpression` annotation * `[PlutoLib]` The `RAID#getIDOf` method now returns `OptionalInt` to avoid NPEs +* `[PlutoLib]` Added an `equals` implementation to `ResourceAddress` +* `[PlutoStatic]` Added the `ModGLFW` virtual module * `[PlutoLib]` The transitive dependency JOML is now provided by `PlutoLib` instead of `PlutoStatic` * `[PlutoLib]` Created a simple Color API * `[PlutoShader]` Added the 8-bit RGBA `Color` class as a counterpart to AWT's `Color` class diff --git a/plutostatic/src/main/java/cz/tefek/pluto/engine/ModGLFW.java b/plutostatic/src/main/java/cz/tefek/pluto/engine/ModGLFW.java new file mode 100644 index 0000000..3c7b554 --- /dev/null +++ b/plutostatic/src/main/java/cz/tefek/pluto/engine/ModGLFW.java @@ -0,0 +1,16 @@ +package cz.tefek.pluto.engine; + +import org.lwjgl.glfw.GLFW; + +import cz.tefek.pluto.modloader.ModEntry; + +@ModEntry(modid = "modglfw", + version = ModGLFW.VERSION, + author = "The GLFW team", + displayName = "GLFW", + description = "The GLFW library, used for native window creation.", + dependencies = ModLWJGL.class) +public class ModGLFW +{ + public static final String VERSION = GLFW.GLFW_VERSION_MAJOR + "." + GLFW.GLFW_VERSION_MINOR + "." + GLFW.GLFW_VERSION_REVISION; +}