diff --git a/.classpath b/.classpath index 4c9282d..febc371 100644 --- a/.classpath +++ b/.classpath @@ -5,8 +5,9 @@ - + + @@ -23,9 +24,9 @@ + - diff --git a/src/main/java/com/github/halotroop/litecraft/Litecraft.java b/src/main/java/com/github/halotroop/litecraft/Litecraft.java index d7a86bb..ed3cc86 100644 --- a/src/main/java/com/github/halotroop/litecraft/Litecraft.java +++ b/src/main/java/com/github/halotroop/litecraft/Litecraft.java @@ -114,7 +114,7 @@ public class Litecraft extends Game { if (engine == null) // Prevents this from being run more than once on accident. { - Window.create(windowWidth, windowHeight, "LiteCraft", frameCap); // create window + Window.create(windowWidth, windowHeight, "Litecraft", frameCap, RenderAPI.OpenGL); // create window // set up the gateways keybind key tracking KeyCallbackHandler.trackWindow(Window.getWindow()); MouseCallbackHandler.trackWindow(Window.getWindow()); diff --git a/src/main/java/com/github/hydos/ginger/engine/common/io/Window.java b/src/main/java/com/github/hydos/ginger/engine/common/io/Window.java index cfc09de..ccc9050 100644 --- a/src/main/java/com/github/hydos/ginger/engine/common/io/Window.java +++ b/src/main/java/com/github/hydos/ginger/engine/common/io/Window.java @@ -69,13 +69,10 @@ public class Window }else if (renderAPI == RenderAPI.Vulkan) GLFW.glfwWindowHint(GLFW.GLFW_VISIBLE, GLFW.GLFW_FALSE); -<<<<<<< Upstream, based on branch 'liteCraft' of https://github.com/halotroop/Ginger3D.git -======= GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MAJOR, 4); GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MINOR, 6); GLFW.glfwWindowHint(GLFW.GLFW_OPENGL_PROFILE, GLFW.GLFW_OPENGL_CORE_PROFILE); GLFW.glfwWindowHint(GLFW.GLFW_OPENGL_FORWARD_COMPAT, GL11.GL_TRUE); ->>>>>>> 2023b14 OpenGL 4.6 YeS GLFW.glfwWindowHint(GLFW.GLFW_RESIZABLE, GLFW.GLFW_TRUE); GLFWVidMode vidmode = GLFW.glfwGetVideoMode(GLFW.glfwGetPrimaryMonitor()); window = GLFW.glfwCreateWindow(actualWidth, actualHeight, title, (fullscreen) ? GLFW.glfwGetPrimaryMonitor() : 0, getWindow()); @@ -96,11 +93,7 @@ public class Window oldWindowHeight = getHeight(); } -<<<<<<< Upstream, based on branch 'liteCraft' of https://github.com/halotroop/Ginger3D.git - public static void create(int width, int height, String title, int fpsCap, RenderAPI api) -======= - public static void create(int width, int height, String title, float fpsCap) ->>>>>>> 2023b14 OpenGL 4.6 YeS + public static void create(int width, int height, String title, float fpsCap, RenderAPI api) { Window.width = width / 2; Window.height = height / 2;