Changeset 0e6ecf3 in opengl-game for game-gui-sdl.hpp


Ignore:
Timestamp:
Jul 19, 2019, 8:50:06 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
8667f76
Parents:
75108ef
Message:

Create a game gui implementation using glfw3 and move window create/destruction and Vulkan surface creation to the game gui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui-sdl.hpp

    r75108ef r0e6ecf3  
     1#ifndef _GAME_GUI_SDL_H
     2#define _GAME_GUI_SDL_H
     3
    14#include "game-gui.hpp"
     5
     6#include <SDL2/SDL.h>
     7#include <SDL2/SDL_vulkan.h>
    28
    39class GameGui_SDL : public GameGui {
     
    511      bool Init();
    612      void Shutdown();
     13
     14      void* CreateWindow(const string& title, unsigned int width, unsigned int height);
     15      void DestroyWindow();
     16
     17      bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
     18
     19   private:
     20      SDL_Window* window;
    721};
     22
     23#endif // _GAME_GUI_SDL_H
Note: See TracChangeset for help on using the changeset viewer.