Changeset 0e6ecf3 in opengl-game for game-gui.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.hpp

    r75108ef r0e6ecf3  
     1#ifndef _GAME_GUI_H
     2#define _GAME_GUI_H
     3
     4#include <vulkan/vulkan.h>
     5
     6#include <string>
     7
     8using namespace std;
     9
    110#define RTWO_SUCCESS true
    211#define RTWO_ERROR false
     
    817      virtual bool Init() = 0;
    918      virtual void Shutdown() = 0;
     19
     20      virtual void* CreateWindow(const string& title, unsigned int width, unsigned int height) = 0;
     21      virtual void DestroyWindow() = 0;
     22
     23      virtual bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface) = 0;
    1024};
     25
     26#endif // _GAME_GUI_H
Note: See TracChangeset for help on using the changeset viewer.