comparison 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
comparison
equal deleted inserted replaced
428:006008a3f370 449:7696d824489d
2 #define RENDER_H_ 2 #define RENDER_H_
3 3
4 #include "vdp.h" 4 #include "vdp.h"
5 #include "psg.h" 5 #include "psg.h"
6 #include "ym2612.h" 6 #include "ym2612.h"
7
8 typedef struct {
9 void *oddbuf;
10 void *evenbuf;
11 int stride;
12 } surface_info;
13
7 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); 14 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b);
15 surface_info render_alloc_surfaces();
8 uint8_t render_depth(); 16 uint8_t render_depth();
9 void render_init(int width, int height, char * title, uint32_t fps); 17 void render_init(int width, int height, char * title, uint32_t fps, uint8_t use_gl);
10 void render_context(vdp_context * context); 18 void render_context(vdp_context * context);
11 void render_wait_quit(vdp_context * context); 19 void render_wait_quit(vdp_context * context);
12 void render_wait_psg(psg_context * context); 20 void render_wait_psg(psg_context * context);
13 void render_wait_ym(ym2612_context * context); 21 void render_wait_ym(ym2612_context * context);
14 int wait_render_frame(vdp_context * context, int frame_limit); 22 int wait_render_frame(vdp_context * context, int frame_limit);