Changeset aa7707d in opengl-game


Ignore:
Timestamp:
Jul 25, 2020, 8:05:57 PM (4 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master
Children:
681dbe8
Parents:
6bfd91c
Message:

Update the Vulkan SDK version and get the latest code compiling on Windows

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • VulkanGame.vcxproj

    r6bfd91c raa7707d  
    7171  <PropertyGroup Label="UserMacros" />
    7272  <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>
    7575  </PropertyGroup>
    7676  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
     
    135135    <ClCompile Include="FileStackWalker.cpp" />
    136136    <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" />
    137143    <ClCompile Include="logger.cpp" />
    138144    <ClCompile Include="main-vulkan.cpp" />
     
    151157    <ClInclude Include="graphics-pipeline.hpp" />
    152158    <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" />
    153165    <ClInclude Include="logger.hpp" />
    154166    <ClInclude Include="StackWalker.h" />
  • compile.bat

    r6bfd91c raa7707d  
    44cd shaders
    55
    6 set VULKAN_SDK_PATH=D:\VulkanSDK\1.1.108.0
     6set VULKAN_SDK_PATH=D:\VulkanSDK\1.2.135.0
    77
    88for %%f in (*.vert *.frag) do (
  • gui/button.cpp

    r6bfd91c raa7707d  
    22
    33#include <SDL2/SDL_ttf.h>
    4 #include <SDL2/SDL2_gfxPrimitives.h>
     4// #include <SDL2/SDL2_gfxPrimitives.h>
    55
    66#include "../vulkan-game.hpp"
     
    7272   uint8_t colorA = cur_color & 0xFF;
    7373
     74   /*
    7475   boxRGBA(&this->renderer, this->x + x, this->y + y, this->x + this->width, this->y + this->height,
    7576      colorR, colorG, colorB, colorA);
     77   */
    7678
    7779   SDL_Rect rect = {
  • gui/panel.cpp

    r6bfd91c raa7707d  
    33#include <iostream>
    44
    5 #include <SDL2/SDL2_gfxPrimitives.h>
     5// #include <SDL2/SDL2_gfxPrimitives.h>
    66
    77using namespace std;
     
    4242   SDL_RenderClear(&this->renderer);
    4343
     44   /*
    4445   roundedBoxRGBA(&this->renderer, 0, 0, this->width, this->height,
    4546      8, 0x33, 0x33, 0x33, 0xFF);
     47   */
    4648
    4749   int borderThickness = 1;
     
    5254   uint8_t colorA = this->color & 0xFF;
    5355
     56   /*
    5457   roundedBoxRGBA(&this->renderer, borderThickness, borderThickness,
    5558      this->width - borderThickness, this->height - borderThickness,
    5659      8, colorR, colorG, colorB, colorA);
     60   */
    5761
    5862   for (UIElement*& uiElement : this->uiElements) {
  • main-vulkan.cpp

    r6bfd91c raa7707d  
    1 #include "vulkan-game.hpp"
    2 
    31#include <iostream>
    42
    53#include "consts.hpp"
    64#include "crash-logger.hpp"
     5
     6#include "vulkan-game.hpp"
    77
    88using namespace std;
  • vulkan-game.cpp

    r6bfd91c raa7707d  
    17311731      if (closestAsteroid != nullptr) {
    17321732         // 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,
    17341734            offset_of(&SSBO_Asteroid::hp), -20.0f);
    17351735         effects.push_back(eot);
  • vulkan-game.hpp

    r6bfd91c raa7707d  
    22#define _VULKAN_GAME_H
    33
     4#include <algorithm>
    45#include <chrono>
    56#include <map>
Note: See TracChangeset for help on using the changeset viewer.