summaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-07-23 23:01:03 -0700
committerMike Pavone <pavone@retrodev.com>2013-07-23 23:01:03 -0700
commit4788b58c7290ad4a4a161d6bc69bc184acc2ef66 (patch)
tree8549d491f02928ca72810ccd1420c44e86a2eead /render.h
parentecaea87e95c90f4534351cc0121ab8c176d55d78 (diff)
Started work on OpenGL support in new branch
--HG-- branch : opengl
Diffstat (limited to 'render.h')
-rw-r--r--render.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/render.h b/render.h
index 24456be..339dd36 100644
--- a/render.h
+++ b/render.h
@@ -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);