Ignore:
Timestamp:
Jan 15, 2013, 11:41:52 PM (8 years ago)
Author:
sam
Message:

core: you can now while(app.MustTick()) { Tick(); } instead of app.Run().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/eglapp.cpp

    r2183 r2222  
    268268}
    269269
    270 void EglApp::Run()
    271 {
    272     while (!Ticker::Finished())
    273     {
    274         /* Tick the renderer, show the frame and clamp to desired framerate. */
    275         Ticker::TickDraw();
    276 #if defined USE_EGL && !defined __ANDROID__
    277         eglSwapBuffers(data->egl_dpy, data->egl_surf);
    278 #endif
    279     }
     270void EglApp::Tick()
     271{
     272    /* Tick the renderer, show the frame and clamp to desired framerate. */
     273    Ticker::TickDraw();
     274#if defined USE_EGL && !defined __ANDROID__
     275    eglSwapBuffers(data->egl_dpy, data->egl_surf);
     276#endif
    280277}
    281278
Note: See TracChangeset for help on using the changeset viewer.