Package util
Class Engine
java.lang.Object
util.Engine
-
Method Summary
Modifier and TypeMethodDescriptionstatic floatfloatstatic EngineGet the global unique instance of the Engine object.static voidStart the engine, and initialize GLFW.static voidStart the engine, and initialize GLFW.static voidinit(int windowWidth, int windowHeight, String windowTitle, float minSceneLighting, boolean recalculateProjectionOnResize) static voidStart the engine, and initialize GLFW.static voidStart the engine, and initialize GLFW.static booleanstatic doublestatic SceneManagerscenes()static voidstatic voidupdateDeltaTime(float deltaTime) static Windowwindow()
-
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()
-