all repos — mgba @ 3ec0afa8fc5785f45f0c7a24a24ac5a684ab769f

mGBA Game Boy Advance Emulator

src/gba/renderers/video-software.h (view raw)

 1#ifndef VIDEO_SOFTWARE_H
 2#define VIDEO_SOFTWARE_H
 3
 4#include "gba-video.h"
 5
 6#include <pthread.h>
 7
 8struct GBAVideoSoftwareBackground {
 9	int index;
10	int enabled;
11	int priority;
12	uint32_t charBase;
13	int mosaic;
14	int multipalette;
15	uint32_t screenBase;
16	int overflow;
17	int size;
18	uint16_t x;
19	uint16_t y;
20	uint32_t refx;
21	uint32_t refy;
22	uint16_t dx;
23	uint16_t dmx;
24	uint16_t dy;
25	uint16_t dmy;
26	uint32_t sx;
27	uint32_t sy;
28};
29
30struct GBAVideoSoftwareRenderer {
31	struct GBAVideoRenderer d;
32
33	uint16_t* outputBuffer;
34	unsigned outputBufferStride;
35
36	union GBARegisterDISPCNT dispcnt;
37
38	struct GBAVideoSoftwareBackground bg[4];
39
40	pthread_mutex_t mutex;
41	pthread_cond_t cond;
42};
43
44void GBAVideoSoftwareRendererCreate(struct GBAVideoSoftwareRenderer* renderer);
45
46#endif