source: opengl-game/gui/main-screen.hpp@ e1f88a9

feature/imgui-sdl
Last change on this file since e1f88a9 was e1f88a9, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 4 years ago

Create a system to draw and switch between different screens, a Screen class, a MainScreen class that extends it, and some classes for UI elements that can be added to screens.

  • Property mode set to 100644
File size: 496 bytes
Line 
1#ifndef _MAIN_SCREEN_H
2#define _MAIN_SCREEN_H
3
4#include <map>
5
6#include "screen.hpp"
7
8class MainScreen : public Screen {
9 public:
10 MainScreen(SDL_Renderer& renderer, VulkanGame& gameInfo);
11 ~MainScreen() override;
12
13 void createRenderCommands(VkCommandBuffer& commandBuffer, uint32_t currentImage) override;
14
15 void handleEvent(UIEvent& e) override;
16};
17
18void newGame_onMouseClick(VulkanGame& gameInfo);
19void quit_onMouseClick(VulkanGame& gameInfo);
20
21#endif // _MAIN_SSCREEN_H
Note: See TracBrowser for help on using the repository browser.