mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-13 22:35:10 +01:00
54 lines
1.6 KiB
C
54 lines
1.6 KiB
C
|
|
||
|
#ifndef _RENDER_H_
|
||
|
#define _RENDER_H_
|
||
|
|
||
|
|
||
|
/* Look-up pixel table information */
|
||
|
#define LUT_MAX (5)
|
||
|
#define LUT_SIZE (0x10000)
|
||
|
|
||
|
/* Clip structure */
|
||
|
typedef struct
|
||
|
{
|
||
|
uint8 left;
|
||
|
uint8 right;
|
||
|
uint8 enable;
|
||
|
}clip_t;
|
||
|
|
||
|
/* Function prototypes */
|
||
|
int render_init(void);
|
||
|
void render_reset(void);
|
||
|
void render_shutdown(void);
|
||
|
void render_line(int line);
|
||
|
void render_obj(int line, uint8 *buf, uint8 *table);
|
||
|
void render_obj_im2(int line, uint8 *buf, uint8 *table);
|
||
|
void render_ntw(int line, uint8 *buf);
|
||
|
void render_ntw_im2(int line, uint8 *buf);
|
||
|
void render_ntx(int which, int line, uint8 *buf);
|
||
|
void render_ntx_im2(int which, int line, uint8 *buf);
|
||
|
void render_ntx_vs(int which, int line, uint8 *buf);
|
||
|
void update_bg_pattern_cache(void);
|
||
|
void get_hscroll(int line, int shift, uint16 *scroll);
|
||
|
void window_clip(int line);
|
||
|
int make_lut_bg(int bx, int ax);
|
||
|
int make_lut_obj(int bx, int sx);
|
||
|
int make_lut_bg_ste(int bx, int ax);
|
||
|
int make_lut_obj_ste(int bx, int sx);
|
||
|
int make_lut_bgobj_ste(int bx, int sx);
|
||
|
void remap_8(uint8 *src, uint8 *dst, uint8 *table, int length);
|
||
|
void remap_16(uint8 *src, uint16 *dst, uint16 *table, int length);
|
||
|
void remap_32(uint8 *src, uint32 *dst, uint32 *table, int length);
|
||
|
void merge(uint8 *srca, uint8 *srcb, uint8 *dst, uint8 *table, int width);
|
||
|
void color_update_8(int index, uint16 data);
|
||
|
void color_update_15(int index, uint16 data);
|
||
|
void color_update_16(int index, uint16 data);
|
||
|
void color_update_32(int index, uint16 data);
|
||
|
void make_name_lut(void);
|
||
|
void parse_satb(int line);
|
||
|
|
||
|
/* global variables */
|
||
|
extern uint8 object_index_count;
|
||
|
|
||
|
#endif /* _RENDER_H_ */
|
||
|
|