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

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

Change UIEvent to also include the original event from the UI library the game gui is currently using, such as SDL or GLFW.

  • Property mode set to 100644
File size: 498 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(GameEvent& 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.