Mercurial > repos > blastem
diff render.h @ 449:7696d824489d opengl
Started work on OpenGL support in new branch
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 23 Jul 2013 23:01:03 -0700 |
parents | add9e2f5c0e3 |
children | c08a4efeee7f |
line wrap: on
line diff
--- a/render.h Sun Jul 07 15:05:50 2013 -0700 +++ b/render.h Tue Jul 23 23:01:03 2013 -0700 @@ -4,9 +4,17 @@ #include "vdp.h" #include "psg.h" #include "ym2612.h" + +typedef struct { + void *oddbuf; + void *evenbuf; + int stride; +} surface_info; + uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); +surface_info render_alloc_surfaces(); uint8_t render_depth(); -void render_init(int width, int height, char * title, uint32_t fps); +void render_init(int width, int height, char * title, uint32_t fps, uint8_t use_gl); void render_context(vdp_context * context); void render_wait_quit(vdp_context * context); void render_wait_psg(psg_context * context);