This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package util; | |
| import lombok.Getter; | |
| public class Timer { | |
| private final double updatesPerSecond; | |
| private final double nsPerUpdate; | |
| private long lastTime; | |
| private double lag; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package texture; | |
| import com.scorpion.engine.util.FileUtil; | |
| import lombok.Getter; | |
| import lombok.Setter; | |
| import lombok.extern.slf4j.Slf4j; | |
| import java.io.IOException; | |
| import java.util.HashMap; | |
| import java.util.Map; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package input; | |
| import lombok.Getter; | |
| import org.joml.Vector2f; | |
| import org.lwjgl.glfw.GLFWScrollCallbackI; | |
| import static org.lwjgl.glfw.GLFW.glfwSetScrollCallback; | |
| /** | |
| * MouseScroll is a singleton class used to statically get the scrolls in the X and Y positions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package input; | |
| import lombok.Getter; | |
| import org.joml.Vector2f; | |
| import org.lwjgl.glfw.GLFWCursorPosCallbackI; | |
| import static org.lwjgl.glfw.GLFW.glfwSetCursorPosCallback; | |
| /** MousePosition is a singleton class used to statically know the mouse position. */ | |
| @SuppressWarnings("unused") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package input; | |
| import org.lwjgl.glfw.GLFWKeyCallbackI; | |
| import static org.lwjgl.glfw.GLFW.GLFW_PRESS; | |
| import static org.lwjgl.glfw.GLFW.GLFW_RELEASE; | |
| import static org.lwjgl.glfw.GLFW.GLFW_REPEAT; | |
| import static org.lwjgl.glfw.GLFW.glfwGetKey; | |
| import static org.lwjgl.glfw.GLFW.glfwSetKeyCallback; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package input; | |
| import lombok.AccessLevel; | |
| import lombok.NoArgsConstructor; | |
| import static lombok.AccessLevel.PRIVATE; | |
| import static org.lwjgl.glfw.GLFW.*; | |
| @NoArgsConstructor(access = PRIVATE) | |
| @SuppressWarnings("unused") |