Changeset 4d52702 in opengl-game
- Timestamp:
- Feb 25, 2017, 9:28:06 PM (8 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- b33f87b
- Parents:
- 15c7ed9
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r15c7ed9 r4d52702 1 1 game 2 3 # Visual Studio files 4 *.user 5 *.db 6 *.opendb 7 .vs/ 8 *.filters 9 Debug/ 10 Release/ -
README.txt
r15c7ed9 r4d52702 13 13 --------------------------------------- 14 14 15 Install and link glfw and glew using homebrew. This should place all necessary 16 files (or possibly symlinks to them) in /usr/loca/include and /usr/local/lib. 17 15 18 Run 'xcode-select --install' 16 19 This should make g++ check for libraries in /usr/local/ … … 18 21 Installation Instructions for Windows 19 22 --------------------------------------- 23 24 Download the precompiled 32bit binaries of GLFW and GLEW. 25 Create /lib and /include folders and add the paths to those folders to the 26 VC++ project. Copy the include/GL and include/GLFW folders into your /include 27 folder and all the files in the include folders of both libraries into your /lib 28 folder. This should be enough to compile and run the project. -
game.cpp
r15c7ed9 r4d52702 10 10 #if defined(__linux__) 11 11 #define LINUX 12 #elif defined(_WIN32) 13 #define WINDOWS 12 14 #elif defined(__APPLE__) 13 15 #define MAC … … 33 35 glfwWindowHint(GLFW_RESIZABLE, GL_FALSE); 34 36 35 // required in OSX 36 #ifdef MAC 37 #ifdef MAC // required in OSX 37 38 glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); 38 39 #endif
Note:
See TracChangeset
for help on using the changeset viewer.