From 61add3b7d799a43859f776d2ffbb51edc925ea37 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sat, 9 Sep 2017 20:04:46 +0900 Subject: fmdsp: pacc: add layout mode change --- fmdsp/fmdsp-pacc.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'fmdsp/fmdsp-pacc.h') diff --git a/fmdsp/fmdsp-pacc.h b/fmdsp/fmdsp-pacc.h index b5f1021..fb19b79 100644 --- a/fmdsp/fmdsp-pacc.h +++ b/fmdsp/fmdsp-pacc.h @@ -7,10 +7,43 @@ struct pacc_vtable; struct fmdriver_work work; struct opna opna; +enum { + FMDSP_PALETTE_COLORS = 10, +}; + +enum { + PC98_W = 640, + PC98_H = 400, + CHECKER_H = (16+3)*3+8, + CHECKER_Y = PC98_H-CHECKER_H, +}; + +enum fmdsp_left_mode { + FMDSP_LEFT_MODE_OPNA, // FM1, 2, 3, 4, 5, 6, SSG1, 2, 3, PCM + FMDSP_LEFT_MODE_OPN, // FM1, 2, 3, FMEX1, 2, 3, SSG1, 2, 3, PCM + FMDSP_LEFT_MODE_13, // FM1, 2, 3, FMEX1, 2, 3, FM4, 5, 6, SSG1, 2, 3, PCM + FMDSP_LEFT_MODE_PPZ8, // PPZ8 1, 2, 3, 4, 5, 6, 7, 8, PCM + FMDSP_LEFT_MODE_CNT +}; + +enum fmdsp_right_mode { + FMDSP_RIGHT_MODE_DEFAULT, + FMDSP_RIGHT_MODE_TRACK_INFO, + FMDSP_RIGHT_MODE_PPZ8, + FMDSP_RIGHT_MODE_CNT +}; + struct fmdsp_pacc *fmdsp_pacc_init( struct pacc_ctx *pc, const struct pacc_vtable *vtable); void fmdsp_pacc_set(struct fmdsp_pacc *pacc, struct fmdriver_work *work, struct opna *opna); void fmdsp_pacc_release(struct fmdsp_pacc *fp); void fmdsp_pacc_render(struct fmdsp_pacc *fp); +void fmdsp_pacc_palette(struct fmdsp_pacc *fp, int p); + +enum fmdsp_left_mode fmdsp_pacc_left_mode(const struct fmdsp_pacc *fp); +void fmdsp_pacc_set_left_mode(struct fmdsp_pacc *fp, enum fmdsp_left_mode mode); +enum fmdsp_right_mode fmdsp_pacc_right_mode(const struct fmdsp_pacc *fp); +void fmdsp_pacc_set_right_mode(struct fmdsp_pacc *fp, enum fmdsp_right_mode mode); + #endif // MYON_FMDSP_PACC_H_INCLUDED -- cgit v1.2.3