add libcurl loading

This commit is contained in:
Konstantin Käfer
2014-04-16 15:41:19 -04:00
parent 9f815b447b
commit 70742c7a61
5 changed files with 556 additions and 16 deletions

View File

@@ -8,29 +8,16 @@
#include <llmr/util/image.hpp>
#include <llmr/util/io.hpp>
#include <uv.h>
double llmr::platform::elapsed() {
return 0;
}
void llmr::platform::restart() {
// TODO
// noop
}
std::shared_ptr<llmr::platform::Request>
llmr::platform::request_http(const std::string &url, std::function<void(Response *)> background_function,
std::function<void()> foreground_callback) {
// TODO
return nullptr;
}
void llmr::platform::cancel_request_http(const std::shared_ptr<Request> &req) {
// TODO
}
TEST(Headless, initialize) {
llmr::Settings settings;
@@ -110,11 +97,16 @@ TEST(Headless, initialize) {
return;
}
map.setup();
map.resize(width, height);
map.loadSettings();
map.update();
// Run the loop. It will terminate when we don't have any further listeners.
uv_run(uv_default_loop(), UV_RUN_DEFAULT);
map.render();