Changeset 1c6cd5e in opengl-game


Ignore:
Timestamp:
Jul 10, 2019, 3:10:26 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
f286a10
Parents:
b3671b5
git-author:
Dmitry Portnoy <dmp1488@…> (07/10/19 02:58:59)
git-committer:
Dmitry Portnoy <dmp1488@…> (07/10/19 03:10:26)
Message:

Create the VulkanGame VS2019 project and add it to the NewOpenGLGame solution

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • NewOpenGLGame.sln

    rb3671b5 r1c6cd5e  
    11
    22Microsoft Visual Studio Solution File, Format Version 12.00
    3 # Visual Studio 15
    4 VisualStudioVersion = 15.0.26430.14
     3# Visual Studio Version 16
     4VisualStudioVersion = 16.0.29020.237
    55MinimumVisualStudioVersion = 10.0.40219.1
    66Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NewOpenGLGame", "NewOpenGLGame.vcxproj", "{2D79C35D-6372-4B1F-8EFE-55F53BC9D0C7}"
     7EndProject
     8Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VulkanGame", "VulkanGame.vcxproj", "{2AD86D3B-B06F-405A-99F3-941A24329905}"
    79EndProject
    810Global
     
    2224                {2D79C35D-6372-4B1F-8EFE-55F53BC9D0C7}.Release|x86.ActiveCfg = Release|Win32
    2325                {2D79C35D-6372-4B1F-8EFE-55F53BC9D0C7}.Release|x86.Build.0 = Release|Win32
     26                {2AD86D3B-B06F-405A-99F3-941A24329905}.Debug|x64.ActiveCfg = Debug|x64
     27                {2AD86D3B-B06F-405A-99F3-941A24329905}.Debug|x64.Build.0 = Debug|x64
     28                {2AD86D3B-B06F-405A-99F3-941A24329905}.Debug|x86.ActiveCfg = Debug|Win32
     29                {2AD86D3B-B06F-405A-99F3-941A24329905}.Debug|x86.Build.0 = Debug|Win32
     30                {2AD86D3B-B06F-405A-99F3-941A24329905}.Release|x64.ActiveCfg = Release|x64
     31                {2AD86D3B-B06F-405A-99F3-941A24329905}.Release|x64.Build.0 = Release|x64
     32                {2AD86D3B-B06F-405A-99F3-941A24329905}.Release|x86.ActiveCfg = Release|Win32
     33                {2AD86D3B-B06F-405A-99F3-941A24329905}.Release|x86.Build.0 = Release|Win32
    2434        EndGlobalSection
    2535        GlobalSection(SolutionProperties) = preSolution
    2636                HideSolutionNode = FALSE
    2737        EndGlobalSection
     38        GlobalSection(ExtensibilityGlobals) = postSolution
     39                SolutionGuid = {917DF9D1-80F5-4B8C-B930-C93DABDC8615}
     40        EndGlobalSection
    2841EndGlobal
  • README.txt

    rb3671b5 r1c6cd5e  
    5353--------
    5454
    55 ???
     55Create an include directory inside the opengl-game folder
     56
     57Download GLM and copy the glm folder into /include
     58Download the SDL2 pre-built Windows binaries
     59 - Copy the SDL2 include folder into /include and rename it SDL2
     60 - Add the location of the lib/x64 folder to the VS2019 project properties under Linker/General/Addition Library DIrectories
     61
     62Download the vulkan sdk
     63 - Add the location of the Include folder to the VS2019 project properties under C/C++ -> General -> Addition Include DIrectories
     64 - Add the location of the Lib folder to the VS2019 project properties under Linker -> General -> Addition Library DIrectories
    5665
    5766Linux:
    5867--------
    5968
     69Download the vulkan sdk (make sure VULKAN_SDK_PATH in the makefile points to it)
     70
    6071sudo apt-get install libxcb1-dev xorg-dev libsdl2-dev libglm-dev
    61 
    62 Download the vulkan sdk (make sure VULKAN_SDK_PATH in the makefile points to it)
    6372
    6473source setup-env.sh into your current shell
    6574
    66 make vulkcangame && ./vulkangame
     75make vulkangame && ./vulkangame
    6776
    6877OSX
    6978--------
    7079
     80Download the vulkan sdk (make sure VULKAN_SDK_PATH in the makefile points to it)
     81
    7182brew install sdl2 (might need 'brew install sdl2 --HEAD')
    7283
    73 Download the vulkan sdk (make sure VULKAN_SDK_PATH in the makefile points to it)
    74 
    75 make vulkcangame && ./vulkangame
     84make vulkangame && ./vulkangame
  • vulkan-game.cpp

    rb3671b5 r1c6cd5e  
    420420};
    421421
    422 int main() {
     422int main(int argc, char* argv[]) {
    423423
    424424#ifdef NDEBUG
     
    428428#endif
    429429
    430    /*
    431430   mat4 matrix;
    432431   vec4 vec;
    433432   vec4 test = matrix * vec;
    434    */
    435433
    436434   cout << "Starting Vulkan game..." << endl;
Note: See TracChangeset for help on using the changeset viewer.