Changeset 2241 for trunk/tutorial


Ignore:
Timestamp:
Jan 21, 2013, 2:11:58 PM (8 years ago)
Author:
sam
Message:

core: pass the project directory to the binary build and get rid of
that 2-year old "temporary Win32 hack".

Location:
trunk/tutorial
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/tutorial/01_triangle.cpp

    r2237 r2241  
    1818using namespace std;
    1919using namespace lol;
    20 
    21 #if defined _WIN32
    22 #   include <direct.h>
    23 #endif
    2420
    2521extern char const *lolfx_01_triangle;
     
    7975    Application app("Tutorial 1: Triangle", ivec2(640, 480), 60.0f);
    8076
    81 #if defined _MSC_VER && !defined _XBOX
    82     _chdir("..");
    83 #elif defined _WIN32 && !defined _XBOX
    84     _chdir("../..");
    85 #endif
    86 
    8777    new DebugFps(5, 5);
    8878    new Triangle();
  • trunk/tutorial/02_cube.cpp

    r2237 r2241  
    1818using namespace std;
    1919using namespace lol;
    20 
    21 #if defined _WIN32
    22 #   include <direct.h>
    23 #endif
    2420
    2521extern char const *lolfx_02_cube;
     
    140136    Application app("Tutorial 2: Cube", ivec2(640, 480), 60.0f);
    141137
    142 #if defined _MSC_VER && !defined _XBOX
    143     _chdir("..");
    144 #elif defined _WIN32 && !defined _XBOX
    145     _chdir("../..");
    146 #endif
    147 
    148138    new DebugFps(5, 5);
    149139    new Cube();
  • trunk/tutorial/03_noise.cpp

    r2237 r2241  
    1818using namespace std;
    1919using namespace lol;
    20 
    21 #if defined _WIN32
    22 #   include <direct.h>
    23 #endif
    2420
    2521extern char const *lolfx_03_noise;
     
    9086    Application app("Tutorial 3: Noise", ivec2(1280, 720), 60.0f);
    9187
    92 #if defined _MSC_VER && !defined _XBOX
    93     _chdir("..");
    94 #elif defined _WIN32 && !defined _XBOX
    95     _chdir("../..");
    96 #endif
    97 
    9888    new NoiseDemo();
    9989
  • trunk/tutorial/08_fbo.cpp

    r2237 r2241  
    1818using namespace std;
    1919using namespace lol;
    20 
    21 #if defined _WIN32
    22 #   include <direct.h>
    23 #endif
    2420
    2521extern char const *lolfx_08_fbo;
     
    143139    Application app("Tutorial 08: Framebuffer Object", ivec2(640, 480), 60.0f);
    144140
    145 #if defined _MSC_VER && !defined _XBOX
    146     _chdir("..");
    147 #elif defined _WIN32 && !defined _XBOX
    148     _chdir("../..");
    149 #endif
    150 
    151141    new FBO();
    152142
  • trunk/tutorial/11_fractal.cpp

    r2237 r2241  
    1818#include "core.h"
    1919#include "loldebug.h"
    20 
    21 #if defined _WIN32
    22 #   include <direct.h>
    23 #endif
    2420
    2521using namespace lol;
     
    557553    Application app("Tutorial 3: Fractal", window_size, 60.0f);
    558554
    559 #if defined _MSC_VER && !defined _XBOX
    560     _chdir("..");
    561 #elif defined _WIN32 && !defined _XBOX
    562     _chdir("../..");
    563 #endif
    564 
    565555    new DebugFps(5, 5);
    566556    new Fractal(window_size);
Note: See TracChangeset for help on using the changeset viewer.