Changeset 681dbe8 in opengl-game


Ignore:
Timestamp:
Nov 14, 2020, 4:16:07 PM (4 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl, master
Children:
57d43d0
Parents:
aa7707d
Message:

Update compile.bat to use the existing VULKAN_SDK environment variable

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    raa7707d r681dbe8  
    1717.vs/
    1818*.filters
    19 include/
    20 lib/
    2119*.dll
    2220Debug/
    2321Release/
     22
     23include/
     24lib/
  • VulkanGame.vcxproj

    raa7707d r681dbe8  
    7171  <PropertyGroup Label="UserMacros" />
    7272  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
    73     <IncludePath>include;D:\VulkanSDK\1.2.135.0\Include;$(IncludePath)</IncludePath>
    74     <LibraryPath>lib;D:\VulkanSDK\1.2.135.0\Lib;$(LibraryPath)</LibraryPath>
     73    <IncludePath>include;$(VULKAN_SDK)/Include;$(VULKAN_SDK)/Third-Party/Include;$(IncludePath)</IncludePath>
     74    <LibraryPath>lib;$(VULKAN_SDK)\Lib;$(LibraryPath)</LibraryPath>
     75  </PropertyGroup>
     76  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
     77    <IncludePath>include;$(VULKAN_SDK)/Include;$(VULKAN_SDK)/Third-Party/Include;$(IncludePath)</IncludePath>
     78    <LibraryPath>lib;$(VULKAN_SDK)/Lib;$(LibraryPath)</LibraryPath>
    7579  </PropertyGroup>
    7680  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
     
    124128      <SDLCheck>true</SDLCheck>
    125129      <ConformanceMode>true</ConformanceMode>
     130      <LanguageStandard>stdcpp17</LanguageStandard>
     131      <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;GAMEGUI_INCLUDE_VULKAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    126132    </ClCompile>
    127133    <Link>
     
    129135      <EnableCOMDATFolding>true</EnableCOMDATFolding>
    130136      <OptimizeReferences>true</OptimizeReferences>
     137      <AdditionalDependencies>SDL2.lib;SDL2main.lib;SDL2_image.lib;SDL2_ttf.lib;vulkan-1.lib;%(AdditionalDependencies)</AdditionalDependencies>
    131138    </Link>
    132139  </ItemDefinitionGroup>
  • VulkanReference.vcxproj

    raa7707d r681dbe8  
    7171  <PropertyGroup Label="UserMacros" />
    7272  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
     73    <IncludePath>include;$(IncludePath)</IncludePath>
     74    <LibraryPath>lib;$(LibraryPath)</LibraryPath>
     75  </PropertyGroup>
     76  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
    7377    <IncludePath>include;$(IncludePath)</IncludePath>
    7478    <LibraryPath>lib;$(LibraryPath)</LibraryPath>
  • compile.bat

    raa7707d r681dbe8  
    44cd shaders
    55
    6 set VULKAN_SDK_PATH=D:\VulkanSDK\1.2.135.0
    7 
    86for %%f in (*.vert *.frag) do (
    97   set ext=%%~xf
    108   set ext=!ext:~1!
    119
    12    %VULKAN_SDK_PATH%\Bin\glslangValidator.exe -V %%f -o %%~nf-!ext!.spv
     10   %VULKAN_SDK%\Bin\glslangValidator.exe -V %%f -o %%~nf-!ext!.spv
    1311)
    1412
  • docs/README.txt

    raa7707d r681dbe8  
    3535Create lib/ and include/ folders in the root opengl-game directory you cloned.
    3636
    37 Download the pre=compiled 64bit binaries of GLFW and GLEW.
     37Download the pre-compiled 64bit binaries of GLFW and GLEW.
    3838Copy the include/GL/ and include/GLFW/ folders into your include/ folder.
    3939
Note: See TracChangeset for help on using the changeset viewer.