diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystem.java b/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystem.java index 323ab1a25..de9885f06 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystem.java +++ b/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystem.java @@ -35,7 +35,7 @@ import de.staropensource.engine.rendering.event.RenderingErrorEvent; import de.staropensource.engine.rendering.exception.NotOnMainThreadException; import de.staropensource.engine.rendering.renderer.Renderer; import de.staropensource.engine.rendering.type.Window; -import de.staropensource.engine.rendering.type.window.Platform; +import de.staropensource.engine.rendering.type.Platform; import lombok.Getter; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystemConfiguration.java b/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystemConfiguration.java index 82bf30d31..d413c61ff 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystemConfiguration.java +++ b/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystemConfiguration.java @@ -23,10 +23,10 @@ import de.staropensource.engine.base.implementable.Configuration; import de.staropensource.engine.base.logging.Logger; import de.staropensource.engine.base.utility.PropertiesReader; import de.staropensource.engine.rendering.event.RenderingErrorEvent; -import de.staropensource.engine.rendering.type.window.Adapter; -import de.staropensource.engine.rendering.type.window.Platform; -import de.staropensource.engine.rendering.type.window.Renderer; -import de.staropensource.engine.rendering.type.window.VsyncMode; +import de.staropensource.engine.rendering.type.Adapter; +import de.staropensource.engine.rendering.type.Platform; +import de.staropensource.engine.rendering.type.Renderer; +import de.staropensource.engine.rendering.type.VsyncMode; import lombok.Getter; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/callback/KeyCallback.java b/rendering/src/main/java/de/staropensource/engine/rendering/callback/KeyCallback.java index 985161dab..a2cb50491 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/callback/KeyCallback.java +++ b/rendering/src/main/java/de/staropensource/engine/rendering/callback/KeyCallback.java @@ -21,8 +21,8 @@ package de.staropensource.engine.rendering.callback; import de.staropensource.engine.rendering.type.Window; import de.staropensource.engine.rendering.event.InputEvent; -import de.staropensource.engine.rendering.type.input.Key; -import de.staropensource.engine.rendering.type.input.KeyState; +import de.staropensource.engine.rendering.type.Key; +import de.staropensource.engine.rendering.type.KeyState; import org.jetbrains.annotations.NotNull; import org.lwjgl.glfw.GLFWKeyCallbackI; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/callback/MouseButtonCallback.java b/rendering/src/main/java/de/staropensource/engine/rendering/callback/MouseButtonCallback.java index bf121f055..75ad13b4d 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/callback/MouseButtonCallback.java +++ b/rendering/src/main/java/de/staropensource/engine/rendering/callback/MouseButtonCallback.java @@ -21,8 +21,8 @@ package de.staropensource.engine.rendering.callback; import de.staropensource.engine.rendering.type.Window; import de.staropensource.engine.rendering.event.InputEvent; -import de.staropensource.engine.rendering.type.input.Key; -import de.staropensource.engine.rendering.type.input.KeyState; +import de.staropensource.engine.rendering.type.Key; +import de.staropensource.engine.rendering.type.KeyState; import org.jetbrains.annotations.NotNull; import org.lwjgl.glfw.GLFWMouseButtonCallbackI; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/event/InputEvent.java b/rendering/src/main/java/de/staropensource/engine/rendering/event/InputEvent.java index 7d2a7d18a..b23520787 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/event/InputEvent.java +++ b/rendering/src/main/java/de/staropensource/engine/rendering/event/InputEvent.java @@ -24,8 +24,8 @@ import de.staropensource.engine.base.implementable.helper.EventHelper; import de.staropensource.engine.base.logging.Logger; import de.staropensource.engine.rendering.RenderingSubsystemConfiguration; import de.staropensource.engine.rendering.type.Window; -import de.staropensource.engine.rendering.type.input.Key; -import de.staropensource.engine.rendering.type.input.KeyState; +import de.staropensource.engine.rendering.type.Key; +import de.staropensource.engine.rendering.type.KeyState; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/renderer/RenderingCode.java b/rendering/src/main/java/de/staropensource/engine/rendering/renderer/RenderingCode.java index cbc4a470d..5ede7e742 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/renderer/RenderingCode.java +++ b/rendering/src/main/java/de/staropensource/engine/rendering/renderer/RenderingCode.java @@ -25,7 +25,7 @@ import de.staropensource.engine.base.utility.misc.NumberUtil; import de.staropensource.engine.rendering.RenderingSubsystemConfiguration; import de.staropensource.engine.rendering.type.FrameHandler; import de.staropensource.engine.rendering.type.Window; -import de.staropensource.engine.rendering.type.window.VsyncMode; +import de.staropensource.engine.rendering.type.VsyncMode; import java.util.HashMap; import java.util.LinkedHashMap; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/window/Adapter.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/Adapter.java similarity index 96% rename from rendering/src/main/java/de/staropensource/engine/rendering/type/window/Adapter.java rename to rendering/src/main/java/de/staropensource/engine/rendering/type/Adapter.java index 0b90d4bed..44c9e11f5 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/window/Adapter.java +++ b/rendering/src/main/java/de/staropensource/engine/rendering/type/Adapter.java @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -package de.staropensource.engine.rendering.type.window; +package de.staropensource.engine.rendering.type; /** * Represents all available adapters. diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/input/Key.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/Key.java similarity index 99% rename from rendering/src/main/java/de/staropensource/engine/rendering/type/input/Key.java rename to rendering/src/main/java/de/staropensource/engine/rendering/type/Key.java index 80fab5814..db034a965 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/input/Key.java +++ b/rendering/src/main/java/de/staropensource/engine/rendering/type/Key.java @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -package de.staropensource.engine.rendering.type.input; +package de.staropensource.engine.rendering.type; /** * Contains a list of keys which can be recognized by the engine. diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/input/KeyState.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/KeyState.java similarity index 95% rename from rendering/src/main/java/de/staropensource/engine/rendering/type/input/KeyState.java rename to rendering/src/main/java/de/staropensource/engine/rendering/type/KeyState.java index d5c981b78..6513db9ff 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/input/KeyState.java +++ b/rendering/src/main/java/de/staropensource/engine/rendering/type/KeyState.java @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -package de.staropensource.engine.rendering.type.input; +package de.staropensource.engine.rendering.type; /** * Contains in which state a key is. diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/window/Platform.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/Platform.java similarity index 96% rename from rendering/src/main/java/de/staropensource/engine/rendering/type/window/Platform.java rename to rendering/src/main/java/de/staropensource/engine/rendering/type/Platform.java index fb89b899e..1d3fadb88 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/window/Platform.java +++ b/rendering/src/main/java/de/staropensource/engine/rendering/type/Platform.java @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -package de.staropensource.engine.rendering.type.window; +package de.staropensource.engine.rendering.type; /** * Represents all available platforms. diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/window/Renderer.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/Renderer.java similarity index 97% rename from rendering/src/main/java/de/staropensource/engine/rendering/type/window/Renderer.java rename to rendering/src/main/java/de/staropensource/engine/rendering/type/Renderer.java index 2bffc3572..703e4b62c 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/window/Renderer.java +++ b/rendering/src/main/java/de/staropensource/engine/rendering/type/Renderer.java @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -package de.staropensource.engine.rendering.type.window; +package de.staropensource.engine.rendering.type; /** * Represents all available renderers. diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/window/VsyncMode.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/VsyncMode.java similarity index 96% rename from rendering/src/main/java/de/staropensource/engine/rendering/type/window/VsyncMode.java rename to rendering/src/main/java/de/staropensource/engine/rendering/type/VsyncMode.java index 9c09c9eff..f32171013 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/window/VsyncMode.java +++ b/rendering/src/main/java/de/staropensource/engine/rendering/type/VsyncMode.java @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -package de.staropensource.engine.rendering.type.window; +package de.staropensource.engine.rendering.type; import de.staropensource.engine.rendering.RenderingSubsystemConfiguration; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/input/package-info.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/input/package-info.java deleted file mode 100644 index c8da5c5af..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/input/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Data types related to input. - * - * @since v1-alpha9 - */ -package de.staropensource.engine.rendering.type.input; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/window/package-info.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/window/package-info.java deleted file mode 100644 index 732b6dcbd..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/window/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Data types related to windows. - * - * @since v1-alpha9 - */ -package de.staropensource.engine.rendering.type.window; diff --git a/rendering/src/main/java/module-info.java b/rendering/src/main/java/module-info.java index 8967a86fa..1625da003 100644 --- a/rendering/src/main/java/module-info.java +++ b/rendering/src/main/java/module-info.java @@ -22,8 +22,6 @@ module sosengine.rendering { exports de.staropensource.engine.rendering.exception; exports de.staropensource.engine.rendering.renderer; exports de.staropensource.engine.rendering.type; - exports de.staropensource.engine.rendering.type.input; - exports de.staropensource.engine.rendering.type.window; // Reflection access opens de.staropensource.engine.rendering; @@ -31,6 +29,4 @@ module sosengine.rendering { opens de.staropensource.engine.rendering.exception; opens de.staropensource.engine.rendering.renderer; opens de.staropensource.engine.rendering.type; - opens de.staropensource.engine.rendering.type.input; - opens de.staropensource.engine.rendering.type.window; } diff --git a/testapp/build.gradle b/testapp/build.gradle index a6983b1a7..fa5a2b4cc 100644 --- a/testapp/build.gradle +++ b/testapp/build.gradle @@ -73,9 +73,15 @@ jar { application { mainClass.set("de.staropensource.engine.testapp.Main") applicationDefaultJvmArgs = [ + "-XX:+UnlockDiagnosticVMOptions", + // Display GC log //"-Xlog:gc", - + + // Log compilation of methods + //"-XX:+PrintCompilation", + //"-XX:+PrintInlining", + // Set log level to DIAGNOSTIC "-Dsosengine.base.logLevel=diagnostic", diff --git a/testapp/src/main/java/de/staropensource/engine/testapp/Main.java b/testapp/src/main/java/de/staropensource/engine/testapp/Main.java index 859d42093..d0b826321 100644 --- a/testapp/src/main/java/de/staropensource/engine/testapp/Main.java +++ b/testapp/src/main/java/de/staropensource/engine/testapp/Main.java @@ -29,8 +29,8 @@ import de.staropensource.engine.rendering.event.InputEvent; import de.staropensource.engine.rendering.renderer.Renderer; import de.staropensource.engine.rendering.type.FrameHandler; import de.staropensource.engine.rendering.type.Window; -import de.staropensource.engine.rendering.type.input.Key; -import de.staropensource.engine.rendering.type.input.KeyState; +import de.staropensource.engine.rendering.type.Key; +import de.staropensource.engine.rendering.type.KeyState; import lombok.Getter; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable;