Changeset 4eb4d0a in opengl-game for game-gui-glfw.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-glfw.hpp

    r0df3c9a r4eb4d0a  
    44#include "game-gui.hpp"
    55
    6 #define GLFW_INCLUDE_VULKAN
     6#ifdef GAMEGUI_INCLUDE_VULKAN
     7   #define GLFW_INCLUDE_VULKAN
     8#endif
     9
    710#include <GLFW/glfw3.h>
    811
     
    1518      void DestroyWindow();
    1619
     20#ifdef GAMEGUI_INCLUDE_VULKAN
    1721      bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
     22#endif
     23
    1824      vector<const char*> GetRequiredExtensions();
    1925      void GetWindowSize(int* width, int* height);
Note: See TracChangeset for help on using the changeset viewer.