summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-26 13:17:27 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-26 13:17:27 +0000
commit21830b57461780448965878081ecc7d0370a05ba (patch)
treebe85725e983f2e407ed6ec8aa1155ae1c2eac51e
parent537f2c3e4fae27fbd4ad6d101679d85a373d3e0f (diff)
downloadnavit-21830b57461780448965878081ecc7d0370a05ba.tar.gz
Add:Core:New struct to pass raw image data to graphics driver
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5511 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--navit/graphics.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/navit/graphics.h b/navit/graphics.h
index 84c5ebf20..297e8f04a 100644
--- a/navit/graphics.h
+++ b/navit/graphics.h
@@ -47,6 +47,17 @@ struct graphics_font_methods;
struct graphics_gc_methods;
struct graphics_image_methods;
+enum graphics_image_type {
+ graphics_image_type_unknown=0,
+};
+
+struct graphics_image_buffer {
+ char magic[8]; /* buffer:\n */
+ enum graphics_image_type type;
+ void *start;
+ int len;
+};
+
struct graphics_methods {
void (*graphics_destroy)(struct graphics_priv *gr);
void (*draw_mode)(struct graphics_priv *gr, enum draw_mode_num mode);