Ignore:
Timestamp:
Apr 29, 2012, 11:55:32 PM (9 years ago)
Author:
sam
Message:

core: tick methods now use seconds, like any sane system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tutorial/02_cube.cpp

    r1269 r1310  
    22// Lol Engine - Cube tutorial
    33//
    4 // Copyright: (c) 2011 Sam Hocevar <sam@hocevar.net>
     4// Copyright: (c) 2011-2012 Sam Hocevar <sam@hocevar.net>
    55//   This program is free software; you can redistribute it and/or
    66//   modify it under the terms of the Do What The Fuck You Want To
     
    6262    }
    6363
    64     virtual void TickGame(float deltams)
     64    virtual void TickGame(float seconds)
    6565    {
    66         WorldEntity::TickGame(deltams);
     66        WorldEntity::TickGame(seconds);
    6767
    68         m_angle += deltams / 1000.0f * 45.0f;
     68        m_angle += seconds * 45.0f;
    6969
    7070        mat4 anim = mat4::rotate(m_angle, vec3(0, 1, 0));
     
    7676    }
    7777
    78     virtual void TickDraw(float deltams)
     78    virtual void TickDraw(float seconds)
    7979    {
    80         WorldEntity::TickDraw(deltams);
     80        WorldEntity::TickDraw(seconds);
    8181
    8282        if (!m_ready)
Note: See TracChangeset for help on using the changeset viewer.