Navit SVN

/work/compile/navit/src/navit/graphics/opengl/graphics_opengl.h

00001 struct graphics_opengl_window_system;
00002 struct graphics_opengl_platform;
00003 
00004 
00005 struct graphics_opengl_window_system_methods {
00006         void (*destroy)(struct graphics_opengl_window_system *);
00007         void *(*get_display)(struct graphics_opengl_window_system *);
00008         void *(*get_window)(struct graphics_opengl_window_system *);
00009         void (*set_callbacks)(struct graphics_opengl_window_system *, void *data, void *resize, void *button, void *motion, void *keypress);
00010 };
00011 
00012 struct graphics_opengl_platform_methods {
00013         void (*destroy)(struct graphics_opengl_platform *);
00014         void (*swap_buffers)(struct graphics_opengl_platform *);
00015 };
00016 
00017 struct graphics_opengl_window_system *graphics_opengl_x11_new(void *displayname, int w, int h, int depth, struct graphics_opengl_window_system_methods **methods);
00018 struct graphics_opengl_platform *graphics_opengl_egl_new(void *display, void *window, struct graphics_opengl_platform_methods **methods);