ImageInput::ImageInput(const string &filename)
: movit::FlatInput({movit::COLORSPACE_sRGB, movit::GAMMA_sRGB}, movit::FORMAT_RGBA_POSTMULTIPLIED_ALPHA,
GL_UNSIGNED_BYTE, 1280, 720), // Resolution will be overwritten.
- filename(filename),
pathname(search_for_file_or_die(filename)),
current_image(load_image(filename, pathname))
{
timespec last_modified;
};
- std::string filename, pathname;
+ std::string pathname;
std::shared_ptr<const Image> current_image;
static std::shared_ptr<const Image> load_image(const std::string &filename, const std::string &pathname);