feature/imgui-sdl
Last change
on this file since 737c26a 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
|
Rev | Line | |
---|
[e1f88a9] | 1 | #ifndef _MAIN_SCREEN_H
|
---|
| 2 | #define _MAIN_SCREEN_H
|
---|
| 3 |
|
---|
| 4 | #include <map>
|
---|
| 5 |
|
---|
| 6 | #include "screen.hpp"
|
---|
| 7 |
|
---|
| 8 | class 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 |
|
---|
[d8cf709] | 15 | void handleEvent(GameEvent& e) override;
|
---|
[e1f88a9] | 16 | };
|
---|
| 17 |
|
---|
| 18 | void newGame_onMouseClick(VulkanGame& gameInfo);
|
---|
| 19 | void quit_onMouseClick(VulkanGame& gameInfo);
|
---|
| 20 |
|
---|
| 21 | #endif // _MAIN_SSCREEN_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.