Ignore:
Timestamp:
May 1, 2012, 3:40:56 PM (9 years ago)
Author:
sam
Message:

core: move some of the camera view logic from the Video class to the
Scene and Camera classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ticker.cpp

    r1310 r1325  
    343343    Profiler::Start(Profiler::STAT_TICK_DRAW);
    344344
    345     Video::Clear();
    346 
    347     Scene::GetDefault();
    348 
    349345    /* Tick objects for the draw loop */
    350346    for (int i = Entity::DRAWGROUP_BEGIN; i < Entity::DRAWGROUP_END; i++)
     
    352348        switch (i)
    353349        {
     350        case Entity::DRAWGROUP_BEGIN:
     351            Scene::GetDefault()->Reset();
     352            Video::Clear();
     353            break;
    354354        case Entity::DRAWGROUP_HUD:
    355             Scene::GetDefault()->Render();
    356355            Video::SetDepth(false);
    357356            break;
     
    376375#endif
    377376            }
    378     }
    379 
    380     Scene::GetDefault()->Render();
    381     Scene::Reset();
     377
     378        /* Do this render step */
     379        Scene::GetDefault()->Render();
     380    }
    382381
    383382    Profiler::Stop(Profiler::STAT_TICK_DRAW);
Note: See TracChangeset for help on using the changeset viewer.