Changeset 15c7ed9 in opengl-game for game.cpp


Ignore:
Timestamp:
Feb 23, 2017, 2:28:24 AM (8 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
4d52702
Parents:
5540132
Message:

Change the makefile to fully support mac and linux and add preprocessor driectives to detect the OS in the C++ code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game.cpp

    r5540132 r15c7ed9  
    88#include <GLFW/glfw3.h>
    99
    10 #ifdef __APPLE__
    11    #define OSX
     10#if defined(__linux__)
     11   #define LINUX
     12#elif defined(__APPLE__)
     13   #define MAC
    1214#endif
    1315
     
    3234
    3335   // required in OSX
    34    #ifdef OSX
     36   #ifdef MAC
    3537      glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
    3638   #endif
Note: See TracChangeset for help on using the changeset viewer.