#define _IMAGE_INPUT_H 1
#include <epoxy/gl.h>
-#include <movit/flat_input.h>
#include <stdbool.h>
#include <time.h>
#include <condition_variable>
-#include <cstdint>
#include <map>
#include <memory>
#include <mutex>
#include <string>
#include <thread>
-#include "ref_counted_texture.h"
+#include "shared/ref_counted_texture.h"
#include "tweaked_inputs.h"
class QSurface;
// NOTE: You will need to call start_update_thread() yourself, once per program.
struct Image {
unsigned width, height;
- RefCountedTexture tex;
+ UniqueTexture tex;
timespec last_modified;
};
static std::shared_ptr<const Image> load_image(const std::string &filename, const std::string &pathname);