Changeset 99d44b2 in opengl-game for vulkan-game.cpp
- Timestamp:
- Aug 30, 2019, 4:12:23 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- d02c25f
- Parents:
- 4eb4d0a
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
r4eb4d0a r99d44b2 1 #include " space-game.hpp"1 #include "vulkan-game.hpp" 2 2 3 3 #include <iostream> 4 4 5 #define GAMEGUI_INCLUDE_VULKAN 5 6 #include "game-gui-sdl.hpp" 6 7 7 8 using namespace std; 8 9 9 SpaceGame::SpaceGame() {10 VulkanGame::VulkanGame() { 10 11 gui = nullptr; 11 12 window = nullptr; 12 13 } 13 14 14 SpaceGame::~SpaceGame() {15 VulkanGame::~VulkanGame() { 15 16 } 16 17 17 void SpaceGame::run() {18 void VulkanGame::run() { 18 19 if (initWindow() == RTWO_ERROR) { 19 20 return; … … 24 25 } 25 26 26 bool SpaceGame::initWindow() {27 bool VulkanGame::initWindow() { 27 28 gui = new GameGui_SDL(); 28 29 … … 43 44 } 44 45 45 void SpaceGame::initVulkan() {46 void VulkanGame::initVulkan() { 46 47 } 47 48 48 void SpaceGame::mainLoop() {49 void VulkanGame::mainLoop() { 49 50 SDL_Event e; 50 51 bool quit = false; … … 65 66 } 66 67 67 void SpaceGame::cleanup() {68 void VulkanGame::cleanup() { 68 69 gui->DestroyWindow(); 69 70 gui->Shutdown();
Note:
See TracChangeset
for help on using the changeset viewer.