]> git.sesse.net Git - nageru/blobdiff - image_input.h
Add an editor for the MIDI mappings.
[nageru] / image_input.h
index 659404ea7c5954a191aeda2faf72e3ef774544e7..3b3c1873763577c2250a48b883cc214b04620592 100644 (file)
@@ -16,7 +16,7 @@
 // from disk about every second.
 class ImageInput : public movit::FlatInput {
 public:
-       ImageInput(const std::string &filename);
+       ImageInput(const std::string &pathname);
 
        std::string effect_type_id() const override { return "ImageInput"; }
        void set_gl_state(GLuint glsl_program_num, const std::string& prefix, unsigned *sampler_num) override;
@@ -28,12 +28,12 @@ private:
                timespec last_modified;
        };
 
-       std::string filename;
+       std::string pathname;
        std::shared_ptr<const Image> current_image;
 
-       static std::shared_ptr<const Image> load_image(const std::string &filename);
-       static std::shared_ptr<const Image> load_image_raw(const std::string &filename);
-       static void update_thread_func(const std::string &filename, const timespec &first_modified);
+       static std::shared_ptr<const Image> load_image(const std::string &pathname);
+       static std::shared_ptr<const Image> load_image_raw(const std::string &pathname);
+       static void update_thread_func(const std::string &pathname, const timespec &first_modified);
        static std::mutex all_images_lock;
        static std::map<std::string, std::shared_ptr<const Image>> all_images;
        static std::map<std::string, std::thread> update_threads;