Changeset eba8c0c in opengl-game
- Timestamp:
- Aug 29, 2019, 9:13:58 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 0df3c9a
- Parents:
- e8ebc76
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
makefile
re8ebc76 reba8c0c 42 42 endif 43 43 44 LIBS = `pkg-config --static --libs sdl2 sdl2_image sdl2_ttf glfw3`44 LIBS = `pkg-config --static --libs sdl2 sdl2_image sdl2_ttf` 45 45 ifeq ($(OS),Darwin) 46 46 LIBS := $(VULKAN_SDK_PATH)/lib/libvulkan.dylib $(LIBS) 47 47 endif 48 48 ifeq ($(OS),Linux) 49 LIBS = `pkg-config --static --libs sdl2 glfw3`49 LIBS = `pkg-config --static --libs sdl2` 50 50 LIBS := -lvulkan $(LIBS) -lSDL2_image -lSDL2_ttf # TODO: figure out how to statically link these, ideally using pkg-config 51 51 endif … … 53 53 LIB_FLAGS = $(LIB_PATHS) $(LIBS) 54 54 55 vulkangame: vulkan-game.cpp game-gui-sdl.cpp game-gui-glfw.cpp55 vulkangame: vulkan-game.cpp game-gui-sdl.cpp 56 56 $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS) 57 57 58 spacegame: main.cpp space-game.cpp game-gui-sdl.cpp game-gui-glfw.cpp58 spacegame: main.cpp space-game.cpp game-gui-sdl.cpp 59 59 $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS) 60 60 -
upgrade-TODO.txt
re8ebc76 reba8c0c 1 - Create shader configs in Vulkan and sample vertex data for all the shaders currently used in OpenGL 2 - Rewrite the system to store scene objects, copy their vertex data to vertex buffers and 3 resize the vertex buffers as needed to be used with Vulkan 4 - Copy the UI overlay system from the Vulkan implementation to build the UI on top of 1 5 - Upgrade the UI from ImGui to SDL 2 6 - Could probably use the existing window / event system 3 7 - Create buttons with text and events in SDL 4 - Create shader configs in Vulkan and sample vertex data for all the shaders currently used in OpenGL5 - Rewrite the system to store scene objects, copy their vertex data to vertex buffers and6 resize the vertex buffers as needed to be used with Vulkan7 8 - Implement the ability to listen for mouse clicks and keystrokes 8 9 - Assuming SDL supports detecting key presses and key releases, re-implement the key state array -
vulkan-game.cpp
re8ebc76 reba8c0c 21 21 #include "utils.h" 22 22 23 #include "game-gui-glfw.hpp"24 23 #include "game-gui-sdl.hpp" 25 24
Note:
See TracChangeset
for help on using the changeset viewer.