mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
frontend/screens deleted
This commit is contained in:
parent
7415726e47
commit
61ca91b525
11 changed files with 272 additions and 262 deletions
22
src/frontend/screens/Screen.hpp
Normal file
22
src/frontend/screens/Screen.hpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef FRONTEND_SCREENS_SCREEN_HPP_
|
||||
#define FRONTEND_SCREENS_SCREEN_HPP_
|
||||
|
||||
#include "../../util/ObjectsKeeper.hpp"
|
||||
|
||||
class Engine;
|
||||
class Batch2D;
|
||||
|
||||
/// @brief Screen is a mainloop state
|
||||
class Screen : public util::ObjectsKeeper {
|
||||
protected:
|
||||
Engine* engine;
|
||||
std::unique_ptr<Batch2D> batch;
|
||||
public:
|
||||
Screen(Engine* engine);
|
||||
virtual ~Screen();
|
||||
virtual void update(float delta) = 0;
|
||||
virtual void draw(float delta) = 0;
|
||||
virtual void onEngineShutdown() {};
|
||||
};
|
||||
|
||||
#endif // FRONTEND_SCREENS_SCREEN_HPP_
|
||||
Loading…
Add table
Add a link
Reference in a new issue