Changeset d2f607c in opengl-game
- Timestamp:
- Sep 12, 2019, 5:28:02 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 203ab1b
- Parents:
- 7bf5433
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r7bf5433 rd2f607c 1 newgame 1 openglref 2 2 vulkanref 3 3 openglgame -
game-gui-sdl.cpp
r7bf5433 rd2f607c 59 59 // otherwise you will not receive a High DPI OpenGL canvas. 60 60 61 uint32_t flags = SDL_WINDOW_VULKAN; 61 SDL_DisplayMode dm; 62 SDL_GetCurrentDisplayMode(0, &dm); 62 63 63 flags |= fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : SDL_WINDOW_RESIZABLE; 64 if (fullscreen) { 65 width = dm.w; 66 height = dm.h; 67 } 68 69 uint32_t flags = SDL_WINDOW_VULKAN | (fullscreen ? SDL_WINDOW_FULLSCREEN : SDL_WINDOW_RESIZABLE); 64 70 65 71 window = SDL_CreateWindow(title.c_str(), -
makefile
r7bf5433 rd2f607c 22 22 # as this well prevent regenerating .o files for unchanged .cpp files 23 23 24 newgame: new-game.cpp logger.cpp utils.cpp crash-logger.cpp imgui_impl_glfw_gl3.cpp $(IMGUI_FILES)24 openglref: new-game.cpp logger.cpp utils.cpp crash-logger.cpp imgui_impl_glfw_gl3.cpp $(IMGUI_FILES) 25 25 $(CC) $^ $(DEP) $(CFLAGS) -o $@ 26 26 … … 67 67 68 68 clean: 69 rm -f newgame69 rm -f openglref 70 70 rm -f vulkanref 71 71 rm -f openglgame
Note:
See TracChangeset
for help on using the changeset viewer.