Changeset 684


Ignore:
Timestamp:
Feb 22, 2011, 2:17:51 AM (9 years ago)
Author:
sam
Message:

If only GLES is available, create an EglApp instead of an SdlApp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/monsterz.cpp

    r680 r684  
    1818
    1919#include "core.h"
     20#include "lolgl.h"
    2021
    21 #include "sdlapp.h"
    22 #include "sdlinput.h"
     22#if defined HAVE_GLES_2X
     23#   include "eglapp.h"
     24#else
     25#   include "sdlapp.h"
     26#   include "sdlinput.h"
     27#endif
    2328#include "interface.h"
    2429
     
    3237int main(int argc, char **argv)
    3338{
     39#if defined HAVE_GLES_2X
     40    EglApp app("Monsterz", vec2i(640, 480), 60.0f);
     41#else
    3442    SdlApp app("Monsterz", vec2i(640, 480), 60.0f);
     43#endif
    3544
    3645#if defined _WIN32
     
    3948
    4049    /* Register an input driver and some debug stuff */
     50#if !defined HAVE_GLES_2X
    4151    new SdlInput();
     52#endif
    4253    new Interface();
    4354    new DebugFps(20, 20);
Note: See TracChangeset for help on using the changeset viewer.