Changeset 4eb4d0a in opengl-game for game-gui.hpp


Ignore:
Timestamp:
Aug 30, 2019, 4:01:54 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
99d44b2
Parents:
0df3c9a
Message:

Rename vulkan-game.cpp to vulkan-ref.cpp and define the GAMEGUI_INCLUDE_VULKAN preprocessor directive to control whether the gui-game classes build with Vulkan support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui.hpp

    r0df3c9a r4eb4d0a  
    22#define _GAME_GUI_H
    33
    4 #include <vulkan/vulkan.h>
     4#ifdef GAMEGUI_INCLUDE_VULKAN
     5   #include <vulkan/vulkan.h>
     6#endif
    57
    68#include <string>
     
    2224      virtual void DestroyWindow() = 0;
    2325
     26#ifdef GAMEGUI_INCLUDE_VULKAN
    2427      virtual bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface) = 0;
     28#endif
     29
    2530      virtual vector<const char*> GetRequiredExtensions() = 0;
    2631      virtual void GetWindowSize(int* width, int* height) = 0;
Note: See TracChangeset for help on using the changeset viewer.