Changeset 1647 for trunk/tutorial


Ignore:
Timestamp:
Jul 18, 2012, 10:27:34 PM (8 years ago)
Author:
sam
Message:

build: hide the SDL_main.h inclusion in core.h, and only activate it
on Windows if using Visual Studio; if using MinGW, try to stick to the
original main() entry point.

Location:
trunk/tutorial
Files:
5 edited

Legend:

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

    r1645 r1647  
    1818using namespace std;
    1919using namespace lol;
    20 
    21 #if USE_SDL
    22 #   include <SDL_main.h>
    23 #endif
    2420
    2521#if defined _WIN32
  • trunk/tutorial/02_cube.cpp

    r1645 r1647  
    1818using namespace std;
    1919using namespace lol;
    20 
    21 #if USE_SDL
    22 #   include <SDL_main.h>
    23 #endif
    2420
    2521#if defined _WIN32
  • trunk/tutorial/05_easymesh.cpp

    r1645 r1647  
    1717using namespace std;
    1818using namespace lol;
    19 
    20 #if USE_SDL
    21 #   include <SDL_main.h>
    22 #endif
    2319
    2420class EasyMeshTutorial : public WorldEntity
  • trunk/tutorial/08_fbo.cpp

    r1645 r1647  
    1818using namespace std;
    1919using namespace lol;
    20 
    21 #if USE_SDL
    22 #   include <SDL_main.h>
    23 #endif
    2420
    2521#if defined _WIN32
  • trunk/tutorial/11_fractal.cpp

    r1645 r1647  
    2121using namespace lol;
    2222
    23 #if defined _WIN32 && defined USE_D3D9
    24 #   define FAR
    25 #   define NEAR
    26 #   include <d3d9.h>
    27 #endif
    28 
    29 #if USE_SDL
    30 #   include <SDL_main.h>
    31 #endif
    32 
    3323#if defined _WIN32
    3424#   include <direct.h>
     25#   if defined USE_D3D9
     26#       define FAR
     27#       define NEAR
     28#       include <d3d9.h>
     29#   endif
    3530#endif
    3631
Note: See TracChangeset for help on using the changeset viewer.