Changeset b8d4456 in opengl-game
- Timestamp:
- Jun 8, 2020, 6:49:39 PM (4 years ago)
- Branches:
- feature/imgui-sdl, master
- Children:
- 4e705d6
- Parents:
- 4a9416a
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
consts.hpp
r4a9416a rb8d4456 4 4 #define GAME_VERSION "0.01.000" 5 5 6 // TODO: Rename these using some other prefix 6 7 #define RTWO_SUCCESS true 7 8 #define RTWO_ERROR false -
docs/README.txt
r4a9416a rb8d4456 96 96 Download the vulkan sdk (make sure VULKAN_SDK_PATH in the makefile points to it) 97 97 98 brew install sdl2 sdl2_image sdl2_ttf 98 brew install sdl2 sdl2_image sdl2_ttf sdl2_gfx 99 99 100 100 make vulkangame && ./vulkangame -
docs/TODO.txt
r4a9416a rb8d4456 2 2 ========== 3 3 - Switch the game to use SDL and Vulkan (based on the test program I already made) 4 - Will require switching the UI from IMGUI to Vulkan4 - Will require switching the UI from IMGUI to SDL 5 5 - Make window resizing and fullscreen mode work correctly 6 6 -
game-gui-sdl.cpp
r4a9416a rb8d4456 27 27 28 28 if (SDL_Init(SDL_INIT_EVERYTHING) < 0) { 29 return RTWO_ERROR;30 }31 32 int imgFlags = IMG_INIT_PNG;33 if (!(IMG_Init(imgFlags) & imgFlags)) {34 29 return RTWO_ERROR; 35 30 } … … 123 118 break; 124 119 case SDL_MOUSEMOTION: 120 event->mouse.x = e.motion.x; 121 event->mouse.y = e.motion.y; 125 122 case SDL_FINGERMOTION: 126 123 event->type = UI_EVENT_MOUSEMOTION; -
game-gui-sdl.hpp
r4a9416a rb8d4456 5 5 6 6 #include <SDL2/SDL.h> 7 #include <SDL2/SDL_image.h>8 7 #include <SDL2/SDL_ttf.h> 9 8 -
game-gui.hpp
r4a9416a rb8d4456 35 35 struct MouseEvent { 36 36 EventType type; 37 int x; 38 int y; 37 39 /* 38 40 int button; 39 41 int action; 40 int x;41 int y;42 42 */ 43 43 }; -
vulkan-utils.hpp
r4a9416a rb8d4456 9 9 10 10 #include <SDL2/SDL.h> 11 #include <SDL2/SDL_image.h>12 11 #include <SDL2/SDL_vulkan.h> 13 12
Note:
See TracChangeset
for help on using the changeset viewer.