 |
BARE2D
|
|
std::unique_ptr< ScreenList > m_screenList
ScreenList * getScreenList()
Returns the screen list, where the program can add more screens, set entry points,...
void run()
Runs the program! Starts the update-draw loop.
void update(double dt)
Updates input, output, etc. Only for internal use.
void updateInput()
Updates any input, and throws it down the pipeline!
void init()
Initializes the applet and engine. Creates a window, held within this App. Only for internal use.
void draw()
Draws the current screen, based on that screen's drawing protocol.
Not only does the timer keep track of the current time and delta-times, it can do all the "fancy" cal...
void pollSDLInput()
Polls inputs from SDL and updates the inputmanager as appropriate.
InputManager * getInputManager()
It's a graphical window, holds the contexts for GL and SDL.
Holds and connects all of the screens used in the program in a list. Keeps track of the previous scre...
InputManager * m_inputManager
void exitApp()
Calls the screen's exit function, and then cleans this class up for destruction.