Changeset 91c89f7 in opengl-game
- Timestamp:
- Sep 25, 2019, 12:20:59 AM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 054d9ed
- Parents:
- 502bd0b
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
game-gui-sdl.cpp
r502bd0b r91c89f7 56 56 } 57 57 58 uint32_t flags = SDL_WINDOW_VULKAN | (fullscreen ? SDL_WINDOW_FULLSCREEN: SDL_WINDOW_RESIZABLE);58 uint32_t flags = SDL_WINDOW_VULKAN | SDL_WINDOW_SHOWN | (fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : SDL_WINDOW_RESIZABLE); 59 59 60 60 window = SDL_CreateWindow(title.c_str(), -
vulkan-ref.cpp
r502bd0b r91c89f7 236 236 cout << "GUI init succeeded" << endl; 237 237 238 window = (SDL_Window*) gui->createWindow("Vulkan Game", SCREEN_WIDTH, SCREEN_HEIGHT, false);238 window = (SDL_Window*) gui->createWindow("Vulkan Game", SCREEN_WIDTH, SCREEN_HEIGHT, true); 239 239 if (window == nullptr) { 240 240 cout << "Window could not be created!" << endl; … … 1684 1684 } 1685 1685 if (e.type == SDL_KEYDOWN) { 1686 quit = true; 1686 if (e.key.keysym.scancode == SDL_SCANCODE_ESCAPE) { 1687 quit = true; 1688 } 1687 1689 } 1688 1690 if (e.type == SDL_MOUSEBUTTONDOWN) {
Note:
See TracChangeset
for help on using the changeset viewer.