]> git.tdb.fi Git - libs/gl.git/blobdiff - source/bufferable.h
Alter the working logic of Bufferable to avoid some problems
[libs/gl.git] / source / bufferable.h
index dd7cff8e9b0a1c37b8e43416ec89ad607ccfeb45..fa81554dd0090be867ddfc6ca905c6c68ab5d790 100644 (file)
@@ -25,10 +25,12 @@ private:
 
 protected:
        virtual unsigned get_data_size() const = 0;
-       virtual const void *get_data() const = 0;
 
-       void update_buffer_offsets();
+       void update_buffer_offset();
+       virtual void offset_changed() { }
+
        void update_buffer_data() const;
+       virtual void upload_data() const = 0;
 };
 
 } // namespace GL