Class SceneManager
java.lang.Object
org.indiumstudios.keylib.SceneManagment.SceneManager
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SceneAdds a scene.Retunrs the ArrayList of scenes.static voidRenders the scene.static voidresizeScene(int width, int height, boolean centerCamera) Resize the scene required by libGDX.static voidSets up the scene.
-
Field Details
-
currentScene
The current scene.
-
-
Method Details
-
addScene
Adds a scene.- Parameters:
scene- The scene you want to add.- Returns:
- The scene returned is returned for efficiency.
-
setupScene
public static void setupScene()Sets up the scene. -
renderScene
public static void renderScene()Renders the scene. -
resizeScene
public static void resizeScene(int width, int height, boolean centerCamera) Resize the scene required by libGDX.- Parameters:
width- The width argument of the resize libGDX function.height- The height argument of the resize libGDX function.centerCamera- Whether the camera is centered or not.
-
getScenes
Retunrs the ArrayList of scenes.- Returns:
- The scenes ArrayList.
-