Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.vxSceneManager Class Reference

The Scene Manager which handles Scene Loading and drawing. More...

Static Public Member Functions

static void AddScene< T > ()
 Adds a new screen of type T to the screen manager.
 
static void AddScene (vxBaseScene screen)
 Adds a new screen to the screen manager.
 
static void AddScene (vxBaseScene screen, PlayerIndex? controllingPlayer)
 Adds a new screen to the screen manager.
 
static void LoadScene< T > ()
 
static void LoadScene (params vxBaseScene[] screensToLoad)
 Loads a scene using an async method where the loading is spread out over a series of frames.
 
static void GoToMainMenu ()
 Tells the game to exit whatever it is doing now and to go to the Main Menu.
 
static void LoadSceneSyncronously (params vxBaseScene[] screensToLoad)
 Loads a scene syncronously.
 
static void RemoveScene (vxBaseScene screen)
 Removes a screen from the screen manager. You should normally use vxGameBaseScreen.ExitScreen instead of calling this directly, so the screen can gradually transition off rather than just being instantly removed.
 
static vxBaseScene[] GetScreens ()
 Expose an array holding all the screens. We return a copy rather than the real master list, because screens should only ever be added or removed using the AddScreen and RemoveScreen methods.
 
static void FadeBackBufferToBlack (float alpha)
 Helper draws a translucent black fullscreen sprite, used for fading screens in and out, and for darkening the background behind popups.
 

Static Public Attributes

static List< vxBaseSceneSceneCollection = new List<vxBaseScene>()
 Screen List.
 
static Color FadeToBackBufferColor = Color.Black
 The color to fade the back buffer to.
 
static Color LoadingScreenBackColor = Color.Black
 The color of the loading screen background.
 
static Color LoadingScreenTextColor = Color.White
 The color of the loading screen text.
 
static bool TraceEnabled
 If true, the manager prints out a list of all the screens each time it is updated. This can be useful for making sure everything is being added and removed at the right times.
 

Detailed Description

The Scene Manager which handles Scene Loading and drawing.

Member Function Documentation

◆ AddScene< T >()

static void VerticesEngine.vxSceneManager.AddScene< T > ( )
static

Adds a new screen of type T to the screen manager.

Template Parameters
T
Type Constraints
T :vxBaseScene 

◆ LoadScene()

static void VerticesEngine.vxSceneManager.LoadScene ( params vxBaseScene[] screensToLoad)
static

Loads a scene using an async method where the loading is spread out over a series of frames.

Parameters
screensToLoad

◆ LoadScene< T >()

static void VerticesEngine.vxSceneManager.LoadScene< T > ( )
static
Type Constraints
T :vxBaseScene 

◆ LoadSceneSyncronously()

static void VerticesEngine.vxSceneManager.LoadSceneSyncronously ( params vxBaseScene[] screensToLoad)
static

Loads a scene syncronously.

Parameters
screensToLoad

The documentation for this class was generated from the following file: