Changeset aa7707d in opengl-game
- Timestamp:
- Jul 25, 2020, 8:05:57 PM (4 years ago)
- Branches:
- feature/imgui-sdl, master
- Children:
- 681dbe8
- Parents:
- 6bfd91c
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
VulkanGame.vcxproj
r6bfd91c raa7707d 71 71 <PropertyGroup Label="UserMacros" /> 72 72 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> 73 <IncludePath>include;D:\VulkanSDK\1. 1.108.0\Include;$(IncludePath)</IncludePath>74 <LibraryPath>lib;D:\VulkanSDK\1. 1.108.0\Lib;$(LibraryPath)</LibraryPath>73 <IncludePath>include;D:\VulkanSDK\1.2.135.0\Include;$(IncludePath)</IncludePath> 74 <LibraryPath>lib;D:\VulkanSDK\1.2.135.0\Lib;$(LibraryPath)</LibraryPath> 75 75 </PropertyGroup> 76 76 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> … … 135 135 <ClCompile Include="FileStackWalker.cpp" /> 136 136 <ClCompile Include="game-gui-sdl.cpp" /> 137 <ClCompile Include="gui\button.cpp" /> 138 <ClCompile Include="gui\game-screen.cpp" /> 139 <ClCompile Include="gui\main-screen.cpp" /> 140 <ClCompile Include="gui\panel.cpp" /> 141 <ClCompile Include="gui\screen.cpp" /> 142 <ClCompile Include="gui\ui-element.cpp" /> 137 143 <ClCompile Include="logger.cpp" /> 138 144 <ClCompile Include="main-vulkan.cpp" /> … … 151 157 <ClInclude Include="graphics-pipeline.hpp" /> 152 158 <ClInclude Include="graphics-pipeline_vulkan.hpp" /> 159 <ClInclude Include="gui\button.hpp" /> 160 <ClInclude Include="gui\game-screen.hpp" /> 161 <ClInclude Include="gui\main-screen.hpp" /> 162 <ClInclude Include="gui\panel.hpp" /> 163 <ClInclude Include="gui\screen.hpp" /> 164 <ClInclude Include="gui\ui-element.hpp" /> 153 165 <ClInclude Include="logger.hpp" /> 154 166 <ClInclude Include="StackWalker.h" /> -
compile.bat
r6bfd91c raa7707d 4 4 cd shaders 5 5 6 set VULKAN_SDK_PATH=D:\VulkanSDK\1. 1.108.06 set VULKAN_SDK_PATH=D:\VulkanSDK\1.2.135.0 7 7 8 8 for %%f in (*.vert *.frag) do ( -
gui/button.cpp
r6bfd91c raa7707d 2 2 3 3 #include <SDL2/SDL_ttf.h> 4 #include <SDL2/SDL2_gfxPrimitives.h>4 // #include <SDL2/SDL2_gfxPrimitives.h> 5 5 6 6 #include "../vulkan-game.hpp" … … 72 72 uint8_t colorA = cur_color & 0xFF; 73 73 74 /* 74 75 boxRGBA(&this->renderer, this->x + x, this->y + y, this->x + this->width, this->y + this->height, 75 76 colorR, colorG, colorB, colorA); 77 */ 76 78 77 79 SDL_Rect rect = { -
gui/panel.cpp
r6bfd91c raa7707d 3 3 #include <iostream> 4 4 5 #include <SDL2/SDL2_gfxPrimitives.h>5 // #include <SDL2/SDL2_gfxPrimitives.h> 6 6 7 7 using namespace std; … … 42 42 SDL_RenderClear(&this->renderer); 43 43 44 /* 44 45 roundedBoxRGBA(&this->renderer, 0, 0, this->width, this->height, 45 46 8, 0x33, 0x33, 0x33, 0xFF); 47 */ 46 48 47 49 int borderThickness = 1; … … 52 54 uint8_t colorA = this->color & 0xFF; 53 55 56 /* 54 57 roundedBoxRGBA(&this->renderer, borderThickness, borderThickness, 55 58 this->width - borderThickness, this->height - borderThickness, 56 59 8, colorR, colorG, colorB, colorA); 60 */ 57 61 58 62 for (UIElement*& uiElement : this->uiElements) { -
main-vulkan.cpp
r6bfd91c raa7707d 1 #include "vulkan-game.hpp"2 3 1 #include <iostream> 4 2 5 3 #include "consts.hpp" 6 4 #include "crash-logger.hpp" 5 6 #include "vulkan-game.hpp" 7 7 8 8 using namespace std; -
vulkan-game.cpp
r6bfd91c raa7707d 1731 1731 if (closestAsteroid != nullptr) { 1732 1732 // TODO: Use some sort of smart pointer instead 1733 eot = new EffectOverTime (asteroidPipeline, asteroidObjects, closestAsteroidIndex,1733 eot = new EffectOverTime<AsteroidVertex, SSBO_Asteroid>(asteroidPipeline, asteroidObjects, closestAsteroidIndex, 1734 1734 offset_of(&SSBO_Asteroid::hp), -20.0f); 1735 1735 effects.push_back(eot); -
vulkan-game.hpp
r6bfd91c raa7707d 2 2 #define _VULKAN_GAME_H 3 3 4 #include <algorithm> 4 5 #include <chrono> 5 6 #include <map>
Note:
See TracChangeset
for help on using the changeset viewer.