Changeset 4eb4d0a in opengl-game
- Timestamp:
- Aug 30, 2019, 4:01:54 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 99d44b2
- Parents:
- 0df3c9a
- Files:
-
- 7 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r0df3c9a r4eb4d0a 1 1 spacegame 2 vulkangame3 2 newgame 3 vulkanref 4 4 5 5 gl.log -
game-gui-glfw.cpp
r0df3c9a r4eb4d0a 22 22 } 23 23 24 #ifdef GAMEGUI_INCLUDE_VULKAN 25 24 26 bool GameGui_GLFW::CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface) { 25 27 return glfwCreateWindowSurface(instance, window, nullptr, surface) == VK_SUCCESS ? 26 28 RTWO_SUCCESS : RTWO_ERROR; 27 29 } 30 31 #endif 28 32 29 33 vector<const char*> GameGui_GLFW::GetRequiredExtensions() { -
game-gui-glfw.hpp
r0df3c9a r4eb4d0a 4 4 #include "game-gui.hpp" 5 5 6 #define GLFW_INCLUDE_VULKAN 6 #ifdef GAMEGUI_INCLUDE_VULKAN 7 #define GLFW_INCLUDE_VULKAN 8 #endif 9 7 10 #include <GLFW/glfw3.h> 8 11 … … 15 18 void DestroyWindow(); 16 19 20 #ifdef GAMEGUI_INCLUDE_VULKAN 17 21 bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface); 22 #endif 23 18 24 vector<const char*> GetRequiredExtensions(); 19 25 void GetWindowSize(int* width, int* height); -
game-gui-sdl.cpp
r0df3c9a r4eb4d0a 47 47 } 48 48 49 #ifdef GAMEGUI_INCLUDE_VULKAN 50 49 51 bool GameGui_SDL::CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface) { 50 52 return SDL_Vulkan_CreateSurface(window, instance, surface) ? 51 53 RTWO_SUCCESS : RTWO_ERROR; 52 54 } 55 56 #endif 53 57 54 58 vector<const char*> GameGui_SDL::GetRequiredExtensions() { -
game-gui-sdl.hpp
r0df3c9a r4eb4d0a 17 17 void DestroyWindow(); 18 18 19 #ifdef GAMEGUI_INCLUDE_VULKAN 19 20 bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface); 21 #endif 22 20 23 vector<const char*> GetRequiredExtensions(); 21 24 void GetWindowSize(int* width, int* height); -
game-gui.hpp
r0df3c9a r4eb4d0a 2 2 #define _GAME_GUI_H 3 3 4 #include <vulkan/vulkan.h> 4 #ifdef GAMEGUI_INCLUDE_VULKAN 5 #include <vulkan/vulkan.h> 6 #endif 5 7 6 8 #include <string> … … 22 24 virtual void DestroyWindow() = 0; 23 25 26 #ifdef GAMEGUI_INCLUDE_VULKAN 24 27 virtual bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface) = 0; 28 #endif 29 25 30 virtual vector<const char*> GetRequiredExtensions() = 0; 26 31 virtual void GetWindowSize(int* width, int* height) = 0; -
makefile
r0df3c9a r4eb4d0a 53 53 LIB_FLAGS = $(LIB_PATHS) $(LIBS) 54 54 55 vulkan game: vulkan-game.cpp game-gui-sdl.cpp56 $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS) 55 vulkanref: vulkan-ref.cpp game-gui-sdl.cpp 56 $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS) -DGAMEGUI_INCLUDE_VULKAN 57 57 58 58 spacegame: main.cpp space-game.cpp game-gui-sdl.cpp … … 65 65 clean: 66 66 rm -f newgame 67 rm -f vulkan game67 rm -f vulkanref 68 68 rm -f spacegame 69 69 rm -f shaders/*.spv
Note:
See TracChangeset
for help on using the changeset viewer.