Changeset 1040 for trunk/test/debug


Ignore:
Timestamp:
Oct 31, 2011, 9:19:05 AM (10 years ago)
Author:
sam
Message:

core: write a generic application class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/debug/quad.cpp

    r961 r1040  
    2020using namespace lol;
    2121
    22 #if defined __CELLOS_LV2__
    23 #   include "platform/ps3/ps3app.h"
    24 #elif defined HAVE_GLES_2X
    25 #   include "eglapp.h"
    26 #else
    27 #   include "platform/sdl/sdlapp.h"
    28 #   include "platform/sdl/sdlinput.h"
    29 #endif
    30 
    3122#if USE_SDL && defined __APPLE__
    3223#   include <SDL_main.h>
     
    3930int main(int argc, char **argv)
    4031{
    41 #if defined __CELLOS_LV2__
    42     Ps3App app("Quad", ivec2(640, 480), 60.0f);
    43 #elif defined HAVE_GLES_2X
    44     EglApp app("Quad", ivec2(640, 480), 60.0f);
    45 #else
    46     SdlApp app("Quad", ivec2(640, 480), 60.0f);
    47 #endif
     32    Application app("Quad", ivec2(640, 480), 60.0f);
    4833
    49     /* Register an input driver and some debug stuff */
    50 #if !defined HAVE_GLES_2X
    51     new SdlInput();
    52 #endif
     34    /* Register some debug stuff */
    5335    new DebugFps(5, 5);
    5436    new DebugQuad();
Note: See TracChangeset for help on using the changeset viewer.