summaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-10-27 22:08:02 -0700
committerMike Pavone <pavone@retrodev.com>2013-10-27 22:08:02 -0700
commit070b44e5440b966f911ee974490c7c99c91ec3d1 (patch)
treee5de1208715933f65d6990d231b92a851ad9fbcd /render.h
parentb8dc9d69563379341f127af571b4bec1312f4ca0 (diff)
parent8adf113effdafac7fe80375e2bb51871f9ddd276 (diff)
Merged OpenGL branch
Diffstat (limited to 'render.h')
-rw-r--r--render.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/render.h b/render.h
index acca888..b5dbeda 100644
--- a/render.h
+++ b/render.h
@@ -1,6 +1,6 @@
/*
Copyright 2013 Michael Pavone
- This file is part of BlastEm.
+ This file is part of BlastEm.
BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text.
*/
#ifndef RENDER_H_
@@ -9,9 +9,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);
+void render_alloc_surfaces(vdp_context * context);
uint8_t render_depth();
-void render_init(int width, int height, char * title, uint32_t fps, uint8_t fullscreen);
+void render_init(int width, int height, char * title, uint32_t fps, uint8_t fullscreen, uint8_t use_gl);
void render_context(vdp_context * context);
void render_wait_quit(vdp_context * context);
void render_wait_psg(psg_context * context);