Package util
Class Engine
java.lang.Object
util.Engine
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
float
static Engine
Get the global unique instance of the Engine object.static void
Start the engine, and initialize GLFW.static void
Start the engine, and initialize GLFW.static void
init
(int windowWidth, int windowHeight, String windowTitle, float minSceneLighting, boolean recalculateProjectionOnResize) static void
Start the engine, and initialize GLFW.static void
Start the engine, and initialize GLFW.static boolean
static double
static SceneManager
scenes()
static void
static void
updateDeltaTime
(float deltaTime) static Window
window()
-
Method Details
-
getInstance
Get the global unique instance of the Engine object. -
deltaTime
public static float deltaTime() -
updateDeltaTime
public static void updateDeltaTime(float deltaTime) -
isRunning
public static boolean isRunning() -
window
-
showWindow
public static void showWindow() -
scenes
-
init
public static void init(int windowWidth, int windowHeight, String windowTitle, float minSceneLighting) Start the engine, and initialize GLFW.- Parameters:
windowWidth
- Width of the window to be createdwindowHeight
- Height of the window to be createdwindowTitle
- Title of the window to be createdminSceneLighting
- float from 0-1 indicating the minimum scene light level
-
init
Start the engine, and initialize GLFW.- Parameters:
windowWidth
- Width of the window to be createdwindowHeight
- Height of the window to be createdwindowTitle
- Title of the window to be created
-
init
Start the engine, and initialize GLFW. This will create a fullscreen window.- Parameters:
windowTitle
- Title of the window to be createdminSceneLighting
- float from 0-1 indicating the minimum scene light level
-
init
public static void init(int windowWidth, int windowHeight, String windowTitle, float minSceneLighting, boolean recalculateProjectionOnResize) -
init
Start the engine, and initialize GLFW.- Parameters:
windowTitle
- Title of the window to be created
-
millisRunning
public static double millisRunning()- Returns:
- Returns the number of milliseconds since the engine started. (since the first call)
-
getWindow
-
getDeltaTime
public float getDeltaTime()
-