 |
BARE2D
|
|
Go to the documentation of this file.
45 virtual void draw() = 0;
50 virtual void update(
double dt) = 0;
This is meant to be a parent for other, app-specific, screen classes, which is essentially where all ...
ScreenState m_screenState
virtual void onEntry()=0
This is pretty close to the init function. It is called every time the screen is entered.
virtual void update(double dt)=0
Updates all necessary things!
virtual void draw()=0
Draws anything and everything to the screen!
virtual void initScreen()=0
This is called once, at the start of the program, when the screen is added to the screen list.
virtual void destroyScreen()=0
Destroys the screen, called when the screen list is destroyed.
virtual void onExit()=0
This is close to the destroy function, but is only called when the screen is exited,...
virtual int getNextScreenIndex() const =0
Returns the index of the next screen. It is recommended to keep a file, say, ScreenIndices....