Changeset 5edbd58 in opengl-game for vulkan-game.cpp
- Timestamp:
- Sep 2, 2019, 5:23:40 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 301d0d4
- Parents:
- 2beb6c7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
r2beb6c7 r5edbd58 2 2 3 3 #include <iostream> 4 5 #include "consts.hpp" 4 6 5 7 #define GAMEGUI_INCLUDE_VULKAN … … 16 18 } 17 19 18 void VulkanGame::run( ) {19 if (initWindow( ) == RTWO_ERROR) {20 void VulkanGame::run(unsigned int width, unsigned int height, unsigned char guiFlags) { 21 if (initWindow(width, height, guiFlags) == RTWO_ERROR) { 20 22 return; 21 23 } … … 25 27 } 26 28 27 bool VulkanGame::initWindow( ) {29 bool VulkanGame::initWindow(unsigned int width, unsigned int height, unsigned char guiFlags) { 28 30 gui = new GameGui_SDL(); 29 31 … … 35 37 cout << "GUI init succeeded" << endl; 36 38 37 window = (SDL_Window*) gui->CreateWindow("Vulkan Game", SCREEN_WIDTH, SCREEN_HEIGHT);39 window = (SDL_Window*) gui->CreateWindow("Vulkan Game", width, height); 38 40 if (window == nullptr) { 39 41 cout << "Window could not be created!" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.