Changeset 4d52702 in opengl-game


Ignore:
Timestamp:
Feb 25, 2017, 9:28:06 PM (8 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
b33f87b
Parents:
15c7ed9
Message:

Add Visual Studio project files and support for building in Windows

Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    r15c7ed9 r4d52702  
    11game
     2
     3# Visual Studio files
     4*.user
     5*.db
     6*.opendb
     7.vs/
     8*.filters
     9Debug/
     10Release/
  • README.txt

    r15c7ed9 r4d52702  
    1313---------------------------------------
    1414
     15Install and link glfw and glew using homebrew. This should place all necessary
     16files (or possibly symlinks to them) in /usr/loca/include and /usr/local/lib.
     17
    1518Run 'xcode-select --install'
    1619This should make g++ check for libraries in /usr/local/
     
    1821Installation Instructions for Windows
    1922---------------------------------------
     23
     24Download the precompiled 32bit binaries of GLFW and GLEW.
     25Create /lib and /include folders and add the paths to those folders to the
     26VC++ project. Copy the include/GL and include/GLFW folders into your /include
     27folder and all the files in the include folders of both libraries into your /lib
     28folder. This should be enough to compile and run the project.
  • game.cpp

    r15c7ed9 r4d52702  
    1010#if defined(__linux__)
    1111   #define LINUX
     12#elif defined(_WIN32)
     13        #define WINDOWS
    1214#elif defined(__APPLE__)
    1315   #define MAC
     
    3335   glfwWindowHint(GLFW_RESIZABLE, GL_FALSE);
    3436
    35    // required in OSX
    36    #ifdef MAC
     37   #ifdef MAC // required in OSX
    3738      glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
    3839   #endif
Note: See TracChangeset for help on using the changeset viewer.