Mercurial > repos > blastem
comparison cd_graphics.h @ 2069:8e51c0c3f2e3 segacd
Initial attempt at implementing the Sega CD graphics hardware
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 30 Jan 2022 19:55:33 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2068:f573f2c31bc9 | 2069:8e51c0c3f2e3 |
---|---|
1 #ifndef CD_GRAPHICS_H_ | |
2 #define CD_GRAPHICS_H_ | |
3 | |
4 #include "segacd.h" | |
5 | |
6 enum { | |
7 GA_STAMP_SIZE = 0x58/2, | |
8 GA_STAMP_MAP_BASE, | |
9 GA_IMAGE_BUFFER_VCELLS, | |
10 GA_IMAGE_BUFFER_START, | |
11 GA_IMAGE_BUFFER_OFFSET, | |
12 GA_IMAGE_BUFFER_HDOTS, | |
13 GA_IMAGE_BUFFER_LINES, | |
14 GA_TRACE_VECTOR_BASE | |
15 }; | |
16 | |
17 //GA_STAMP_SIZE | |
18 #define BIT_GRON 0x8000 | |
19 #define BIT_SMS 0x0004 | |
20 #define BIT_STS 0x0002 | |
21 #define BIT_RPT 0x0001 | |
22 | |
23 void cd_graphics_init(segacd_context *cd); | |
24 void cd_graphics_run(segacd_context *cd, uint32_t cycle); | |
25 void cd_graphics_start(segacd_context *cd); | |
26 | |
27 #endif //CD_GRAPHICS_H_ |