aboutsummaryrefslogtreecommitdiff
path: root/src/loader.h
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2017-11-24 17:08:25 +0000
committerHarry Jeffery <harry@exec64.co.uk>2017-11-24 17:09:18 +0000
commit9e4824b4a5aad68a54d9062f3cf4e23487814d04 (patch)
treea763111236b9f9f9e2b82b7c2fdcdf26a092bf64 /src/loader.h
parentb8ba7e7491d65670b16f9bdfb038db39fa964999 (diff)
downloadimv-9e4824b4a5aad68a54d9062f3cf4e23487814d04.tar.gz
Make the loader interface opaque
Diffstat (limited to 'src/loader.h')
-rw-r--r--src/loader.h27
1 files changed, 3 insertions, 24 deletions
diff --git a/src/loader.h b/src/loader.h
index 197b6e2..4fd4067 100644
--- a/src/loader.h
+++ b/src/loader.h
@@ -18,30 +18,9 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <FreeImage.h>
-#include <SDL2/SDL.h>
-#include <pthread.h>
-
-struct imv_texture;
-
-struct imv_loader {
- pthread_mutex_t lock;
- pthread_t bg_thread;
- char *path;
- BYTE *buffer;
- size_t buffer_size;
- FIMEMORY *fi_buffer;
- FIMULTIBITMAP *mbmp;
- FIBITMAP *bmp;
- int width;
- int height;
- int cur_frame;
- int next_frame;
- int num_frames;
- double frame_time;
- unsigned int new_image_event;
- unsigned int bad_image_event;
-};
+#include <unistd.h>
+
+struct imv_loader;
/* Creates an instance of imv_loader */
struct imv_loader *imv_loader_create(void);