imasiprojects / ImasiEngine

3D Engine Library, by Imasi
2 stars 1 forks source link

Introduce TimeXXXXX #64

Open ivancea opened 8 years ago

ivancea commented 8 years ago

Original report by Iván Sanz (Bitbucket: ivansanz, GitHub: isc30).


Replace old clock in Scene with new improved class

TimeXXXXX _timeXXXX;
_timeXXXX.setTick(1.f / 60.f);

_timeXXXX.getDeltaTime()
_timeXXXX.getClock()

update()
{
    if (_timeXXXX.mustTick())
    {
        ...
    }
}