Пример #1
0
int tick(float winwidth, float winheight, float pixratio, float seconds)
{
    current_time = seconds;
    fbsize.x = winwidth * pixratio;
    fbsize.y = winheight * pixratio;
    parg_zcam_tick(winwidth / winheight, seconds);
    if (mode_demo_start) {
        double t = (current_time - mode_demo_start) / DEMO_DURATION;
        if (t >= 1) {
            mode_demo_start = 0;
        }
        float scrolldelta = mode_demo_direction ? -3 : 3;
        parg_zcam_grab_update(TARGETPOS.x, TARGETPOS.y, scrolldelta);
    }
    return parg_zcam_has_moved();
}
Пример #2
0
int tick(float winwidth, float winheight, float pixratio, float seconds)
{
    parg_zcam_tick(winwidth / winheight, seconds);
    return 1;
}