diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-05-26 13:17:27 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-05-26 13:17:27 +0000 |
commit | 21830b57461780448965878081ecc7d0370a05ba (patch) | |
tree | be85725e983f2e407ed6ec8aa1155ae1c2eac51e | |
parent | 537f2c3e4fae27fbd4ad6d101679d85a373d3e0f (diff) | |
download | navit-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.h | 11 |
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); |