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

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

Location:
trunk/src/application
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/application/application.cpp

    r2216 r2222  
    7171}
    7272
     73bool Application::MustTick()
     74{
     75    return !Ticker::Finished();
     76}
     77
     78void Application::Tick()
     79{
     80    data->app.Tick();
     81}
     82
    7383void Application::ShowPointer(bool show)
    7484{
    7585    data->app.ShowPointer(show);
    76 }
    77 
    78 void Application::Run()
    79 {
    80     data->app.Run();
    8186}
    8287
  • trunk/src/application/application.h

    r2183 r2222  
    2828    ~Application();
    2929
     30    bool MustTick();
     31    void Tick();
     32
     33    void Run() { while(MustTick()) Tick(); }
     34
    3035    void ShowPointer(bool show);
    31     void Run();
    3236
    3337private:
Note: See TracChangeset for help on using the changeset viewer.