ViewManager.h
149 void Init(); void InitAfter(); void RunBefore(); void RunAfter(); void DrawBefore(); void DrawAfter();
static int GetViewWidth()
Gets the width of the currently set Display.
Definition: AssetID.h:37
static std::vector< ViewID > ListViews()
Returns a list of all currently created Displays.
static void NewMain(const std::string &name="", int w=640, int h=480)
Convenience function for creating and immediately setting the new display as the current display to u...
static ViewID New(const std::string &name, int w, int h)
Creates a new Display with the given w and h in pixels. Its ID is returned.
static void SetMain(ViewID)
Sets the given Display as the one to update and draw to.
static ViewID GetCurrent()
Returns a pointer to the currently set Display.
static Display * Get(ViewID)
Returns the Display corresponding to the given ID.
static int GetViewHeight()
Gets the dimensions of the currently set Display. If no valid display is set, 0 is returned...