From 21830b57461780448965878081ecc7d0370a05ba Mon Sep 17 00:00:00 2001 From: martin-s Date: Sun, 26 May 2013 13:17:27 +0000 Subject: 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 --- navit/graphics.h | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); -- cgit v1.2.1