Start of image cache implementation... breaks image functionality.
[rodin/chimara.git] / libchimara / graphics.h
index 34cde77db454609e5c49b4435e8251fd730b192e..183405ee68145654e48e9520ebe5e6e7a994708b 100644 (file)
@@ -9,11 +9,17 @@
 #include "resource.h"
 #include "window.h"
 
+#define IMAGE_CACHE_MAX_NUM 10
+#define IMAGE_CACHE_MAX_SIZE 5242880
+
 struct image_info {
        guint32 resource_number;
        gint width, height;
+       GdkPixbuf* pixbuf;
+       gboolean scaled;
 };
 
 void on_graphics_size_allocate(GtkWidget *widget, GtkAllocation *allocation, winid_t win);
+void clear_image_cache(struct image_info *data, gpointer user_data);
 
 #endif