Package buildengine
Class BuildEngine
java.lang.Object
buildengine.BuildEngine
Main static class for the engine
-
Field Summary
-
Method Summary
-
Field Details
-
VERSION
Version: [major].[minor][extra]- See Also:
-
BUILD
Build: [month].[year].[build]- See Also:
-
stable
public static final boolean stableStable build- See Also:
-
COLOR
Default foreground color -
BACKGROUND_COLOR
Default background color -
FONT
Default font
-
-
Method Details
-
welcome
- Returns:
- A string containing info about the current build
-
create
public static Engine create(String windowTitle, Dimension resolution, boolean borderless, boolean vSync) Creates a new instance of Engine and starts it. Deploys a warning if on an unstable build.- Parameters:
windowTitle
- The title of the displayresolution
- The resolution of the display, in pixels. UseDisplay.RESOLUTION
.borderless
- Start display borderlessvSync
- Enable vSync- Returns:
- The created engine
- Throws:
IllegalStateException
- If there already is another instance of Engine running.
-
destroy
public static void destroy()Safely destroys the current engine instance -
getEngine
- Returns:
- The current Engine instance
-