move to libuv for the rendering loop

This commit is contained in:
Konstantin Käfer
2014-04-30 12:01:26 +02:00
parent ddc359f006
commit 1216a061d3
32 changed files with 1312 additions and 911 deletions

View File

@@ -6,6 +6,7 @@
#include <llmr/platform/platform.hpp>
#include <llmr/platform/gl.hpp>
#include <llmr/util/time.hpp>
#include <png.h>
@@ -182,7 +183,7 @@ void Raster::bind(bool linear) {
}
void Raster::beginFadeInAnimation() {
double start = platform::elapsed();
double start = (double)util::now() / 1_second;
fade_animation = std::make_shared<util::ease_animation>(opacity, 1.0, opacity, start, 0.25);
}