source: opengl-game/README.txt@ 621664a

feature/imgui-sdl points-test
Last change on this file since 621664a was 80edd70, checked in by Dmitry Portnoy <dmp1488@…>, 5 years ago

Use a vertex buffer to store the points to be rendered

  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[cfda3b2]1Installation Instructions for Linux
2---------------------------------------
3
[fe70cd3]4sudo apt-get install xorg-dev libglew-dev libglm-dev
[cfda3b2]5
[885f0bb]6make newgame && ./newgame
[669c4e6]7
[885f0bb]8(Old Linux instructions for compiling game.cpp)
[fe70cd3]9-sudo apt-get install cmake xorg-dev libglew-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev
[03f4c64]10
11-Compile GLFW3 from source
12 (cmake . && make && sudo make install)
[cfda3b2]13
[5a643d3]14Installation Instructions for OSX
15---------------------------------------
16
[fc424f6]17brew install glew
[e6bc0f4]18brew install glfw --without-shared-library
[fc424f6]19brew install glm
20
21This should place all necessary files (or possibly symlinks to them) in
22/usr/loca/include and /usr/local/lib.
[4d52702]23
[5a643d3]24Run 'xcode-select --install'
25This should make g++ check for libraries in /usr/local/
26
[58088c0]27If the above command gives you the following error, you should be able to move on and compile the game.
28"xcode-select: error: command line tools are already installed, use "Software Update" to install updates"
29
[885f0bb]30make newgame && ./newgame
31
[cfda3b2]32Installation Instructions for Windows
33---------------------------------------
[4d52702]34
[21de283]35Download the precompiled 32bit binaries of GLFW and GLEW. Create lib/ and
[dba67b2]36include/ folders in the root opengl-game directory you cloned.
37Copy the include/GL/ and include/GLFW/ folders into your include/ folder.
[21de283]38
[dba67b2]39For GLEW, copy lib/RELEASE/Win32/glew32s.lib into your lib folder.
40For GLFW, copy lib-vc2015/glfw3.lib into your lib folder.
41
42Download GLM and copy the glm folder (the one with all the .hpp files) into the include/ folder you made above.
43GLM is a header-only library, so there is nothing to copy into the lib/ folder.
44
[58088c0]45Open and run NewOpenGLGame.sln in Visual Studio 2017 and run it.
[03f4c64]46
47
48--------------------
[ab65f84]49VULKAN INSTRUCTIOS
50--------------------
51
52Windows
53--------
54
[1c6cd5e]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
[80edd70]61 - You can also just copy the contents of that folder to lib
62 - TODO: Figure out how to do static compilation with SDL2
[1c6cd5e]63
64Download the vulkan sdk
65 - Add the location of the Include folder to the VS2019 project properties under C/C++ -> General -> Addition Include DIrectories
66 - Add the location of the Lib folder to the VS2019 project properties under Linker -> General -> Addition Library DIrectories
[03f4c64]67
68Linux:
[ab65f84]69--------
[03f4c64]70
[ab65f84]71Download the vulkan sdk (make sure VULKAN_SDK_PATH in the makefile points to it)
[03f4c64]72
[1c6cd5e]73sudo apt-get install libxcb1-dev xorg-dev libsdl2-dev libglm-dev
74
[b6127d2]75source setup-env.sh into your current shell
76
[1c6cd5e]77make vulkangame && ./vulkangame
[f898c5f]78
79OSX
[ab65f84]80--------
81
82Download the vulkan sdk (make sure VULKAN_SDK_PATH in the makefile points to it)
[f898c5f]83
[1c6cd5e]84brew install sdl2 (might need 'brew install sdl2 --HEAD')
85
86make vulkangame && ./vulkangame
Note: See TracBrowser for help on using the repository browser.